Error when trying to set a Bid Modifier within an Ad Groups Age Range

32 views
Skip to first unread message

Seán Hayes

unread,
Jan 9, 2018, 12:49:45 PM1/9/18
to AdWords API Forum
Hello,

I am trying to SET a bid modifier depending on the Age Demographic through the AdGroupCriterionService. i.e. 10% bid adjustment for 18-24, -10% for 35-44.
This is being done through a Python script and I know this is possible as an example of such is outlined here.

I am running into an issue though. When I try to set the bid adjustment, I get an error saying the ID for the Age_Range entity is not valid:

Response summary - {'requestId': 0005625b4bc9e9990a37f9116c0f224c, 'responseTime': 134, 'serviceName': AdGroupCriterionService, 'methodName': mutate, 'operations': 1, 'isFault': True, 'faultMessage': "[EntityNotFound.INVALID_ID @ operations[0].operand.criterion.id; trigger:'CriterionId{id=503002}']"}

But I know from the documentation that the ID itself is valid.

The operation sent through the mutate call is:

{'operator': 'SET', 'operand': {'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': 39878096063, 'criterion': {'xsi_type': 'AgeRange', 'id': '503002'}, 'bidModifier': 0.9}}




Bharani Cherukuri (AdWords API Team)

unread,
Jan 9, 2018, 4:49:19 PM1/9/18
to adwor...@googlegroups.com
Hello Sean, 

I see that the ad group has no targeting criteria created. I'd suggest that you add targeting criteria using the AdGroupCriterionService, ADD operation. Once the targeting criteria is created for this AdGroup, you will be able to perform a SET operation to set the bid adjustments. If you try to ADD a criterion that already exists, it will be treated as a SET operation on the existing criterion. Can you try the request again with these changes and let me know how it goes?

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages