Hi Gary, The TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL <https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupService.SettingError.Reason#TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL> error means you explicitly set the targetAll <https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupService.TargetingSettingDetail#targetall> field to false. Starting in v201802, you must set the targetAll = true (this is also true by default when creating new ad groups for each demographic criterion group) for the demographic criterion type groups as you can see in the release notes <https://developers.google.com/adwords/api/docs/reference/release-notes/v201802#targeting>. So before using the AdGroupCriterionService to target specific age ranges, if your targetAll is set to false, you can set the targetAll=true first in your ad group. After that, you can now target a specific age range in your ad group via AdGroupCriterionService with the *ADD operator only*. Below shows how I tested this on my test account:
1. Please see before_applying screenshot. This shows that by default, all the age ranges are targeted. 2. Now, via API, I used the BiddableAdGroupCriterion to target the criterion IDs 503002 and 503003 for age ranges 25 to 34 and 35 to 44. See the after_applying screenshot that shows only the two age ranges are now being targeted. This said, you can conveniently use the BiddableAdGroupCriterion or the NegativeAdGroupCriterion depending on your goal. Thanks, Vincent AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8818addc-96d5-4b44-b8f4-3d1aa29bafa2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.