Bid Modifier on AdGroup level

40 views
Skip to first unread message

Petr R

unread,
Aug 19, 2019, 6:09:58 AM8/19/19
to AdWords API and Google Ads API Forum

Hi,
is it possible to use a bid modifier on a ad group level via Google Ads API?
If yes, what should a criterion key:value look like?
I've tried to add 'AgeRange' , 'Platform' to the xsi_type key but without luck.
Thanks for any hint..
RP


def main_add(client,adgroup_id,criterion_id,bid_modifier):
adgroup_criterion_service = client.GetService('AdGroupBidModifierService',version='v201809')
age_range = {
'xsi_type':'AgeRange',
'id':criterion_id
}

adgroup_criterion={
'adGroupId':adgroup_id,
'criterion':age_range,
'bidModifier':bid_modifier
}
operations =[
{
'operator':'ADD',
'operand':adgroup_criterion
}]

Google Ads API Forum Advisor Prod

unread,
Aug 20, 2019, 2:11:21 AM8/20/19
to adwor...@googlegroups.com
Hi,

Thank you for reaching out.

Unfortunately, the AgeRange criterion is not a supported criterion for the AdGroupBidModiferService. You can only use Platform and PreferredContent and you can refer to this sample code as reference on how to do this.

Moving forward and as mentioned in this guide, an alternative for all other criteria types would be to use the AdGroupCriterionService.mutate() and set a bidModifier for the specific criterion which includes AgeRange.

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UEJTug:ref
Reply all
Reply to author
Forward
0 new messages