how to update a CpcBid at adgroup level (python)?

27 views
Skip to first unread message

rafaelf

unread,
Oct 29, 2015, 10:25:09 AM10/29/15
to AdWords API Forum
Hi, I'm tying to update my adgroup bids using the following code but I don't know what id to put for the criterion.id

I will appreciate any help:
{
'operator': 'SET',
'operand': {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': "1589746909",
'criterion': {
'id': "1234",
},
'biddingStrategyConfiguration': {
'bids': [
{
'xsi_type': 'CpcBid',
'bid': {
'microAmount': '300000'
}
}
]
}
}
}

[EntityNotFound.INVALID_ID @ operations[0].operand.criterion.id; trigger:'CriterionId{id=1234}']'



Anthony Madrigal

unread,
Oct 29, 2015, 11:06:33 AM10/29/15
to AdWords API Forum
Hi,

If you are trying to change the CPC bids of the entire adgroup, rather than a particular Criterion, you should use the AdGroupService instead of the AdGroupCriterionService.

Please let me know if you still run into issues.

Cheers,
Anthony
AdWords API Team

rafaelf

unread,
Oct 29, 2015, 11:19:43 AM10/29/15
to AdWords API Forum
tks!

I got it... it's working fine now...

Best
Reply all
Reply to author
Forward
0 new messages