Hello Sean, I see that the ad group has no targeting criteria created. I'd suggest that you add targeting criteria using the AdGroupCriterionService <https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupCriterionService.AdGroupCriterionOperation>, 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 this changes and let me know how it goes?
Regards, Bharani, AdWords API Team On Tuesday, January 9, 2018 at 12:49:45 PM UTC-5, Seán Hayes wrote: > > 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 > <https://github.com/googleads/googleads-python-lib/blob/2ad7e6151a5ee5b98a0e4e5cf8b01f5d4a66f66b/examples/adwords/v201710/targeting/add_demographic_targeting_criteria.py> > . > > 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}} > > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1235f608-a5c6-498b-bfe5-ec5e42d51d6a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.