Re: What's the best way to setup multiple Criterion values for the same item?

2018-04-16 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello Gary, 

You're right. You will need to have multiple operands for both Positive and 
Negative AdGroup criterion. You could use AdGroupCriterionService.mutate() 

 and 
select the AdGroupCriterion 

 as BiddableAdGroupCriterion 

 with 
Criterion as AgeRange 

 to 
include all positive criterion. To exclude a specific age group criterion, 
you can use NegativeAdGroupCriterion 
.
 
You may refer to this code sample in Java 

 as 
a reference. Code samples in other languages can be found here 
. 

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 best way to setup multiple Criterion values for the same item?

2018-04-16 Thread Gary Jiang
Hi,

I am trying to set up some adgroup criterion values and age range. Since I 
found that only one criteria id is accepted for one operand, I have to put 
multiple operands in a request to set the criteria to be something like 
"Eligible for 18-25 and 65+, and excluded for all the rest age range" by 
using a combination of BiddingAdGroupCriterion and 
NegativeAdGroupCriterion. I was wondering if this is the best 
implementation we could have using the latest version of AdWords API for 
now. Thanks

Gary

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/867678f8-ded3-45c8-ba31-761b5f8be616%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.