# Construct operations and update bids. | |
operations = [{ | |
'operator': 'SET', | |
'operand': { | |
'xsi_type': 'BiddableAdGroupCriterion', | |
'adGroupId': ad_group_id, | |
'criterion': { | |
'id': keyword_id, 'type': 'KEYWORD', 'KeyWordMatchType': 'Exact' | |
}, | |
'biddingStrategyConfiguration': { | |
'bids': [ | |
{ | |
'xsi_type': 'CpcBid', | |
'bid': { | |
'microAmount': '500000' | |
} | |
} | |
] | |
} | |
} | |
}] | |
ad_group_criteria = ad_group_criterion_service.mutate(operations) |