Hello Gary, 

You're right. You will need to have multiple operands for both Positive and 
Negative AdGroup criterion. You could use AdGroupCriterionService.mutate() 
<https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService#mutate>
 and 
select the AdGroupCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService.AdGroupCriterion>
 as BiddableAdGroupCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService.BiddableAdGroupCriterion>
 with 
Criterion as AgeRange 
<https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService.AgeRange>
 to 
include all positive criterion. To exclude a specific age group criterion, 
you can use NegativeAdGroupCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService.NegativeAdGroupCriterion>.
 
You may refer to this code sample in Java 
<https://developers.google.com/adwords/api/docs/samples/php/basic-operations#add-keywords>
 as 
a reference. Code samples in other languages can be found here 
<https://developers.google.com/adwords/api/docs/clientlibraries>. 

Regards,
Bharani, 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/a77aab1a-1642-4a3a-bf53-1cb0d06ede48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • What's the be... Gary Jiang
    • Re: What... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to