Hello, 

You could use the AdGroupCriterionService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupCriterionService#get>
 or CampaignCriterionService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService#get>
 and 
look for the CriteriaUse 
<https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupCriterionService.NegativeAdGroupCriterion#criterionuse>
 as 
"Negative" to get the excluded criterion at ad group or campaign levels. 
You could query based on the Criterion 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.CampaignCriterion#criterion>
 object 
as ageRange to obtain results for the excluded age group. You may refer to 
our code samples in Java here 
<https://developers.google.com/adwords/api/docs/samples/java/basic-operations#get-campaigns-with-awql>
 as 
a reference. Code samples in other languages can be found here 
<https://developers.google.com/adwords/api/docs/clientlibraries>. 

If you continue to have an issue with this, please provide us the complete 
SOAP request and response logs along with the clientCustomerId so I can 
take a look and assist you further. Please use *Reply privately to author* 
option 
to provide the logs.

Regards,
Bharani, AdWords API Team

On Monday, December 4, 2017 at 4:14:06 AM UTC-5, C N wrote:
>
> I'm trying to get a list of age range criterion that have been selected 
> for an ad group. An age range (e.g. 18-24) was excluded in the UI, and I'm 
> querying the AdGroupCriterion service, expecting that one of the criteria 
> will show that the age range was excluded. However, instead I'm getting a 
> list of all possible age range criteria.
>
> My query is:
>
> query = 'SELECT 
> AgeRangeType,CriteriaType,UserListName,PlacementUrl,GenderType,UserInterestName,Id,CampaignId
>  
> WHERE CampaignId IN [1003983289]'
>
> which I'm querying using the Python sdk like so:
>
> <AdGroupCriterionService>.query(query)
>
> The results include all possible age ranges, with no indication that any 
> were excluded:
>
> AGE_RANGE_18_24, AGE_RANGE_45_54, AGE_RANGE_25_34, AGE_RANGE_35_44, 
> AGE_RANGE_55_64, AGE_RANGE_UNDETERMINED, AGE_RANGE_65_UP
>
> Is my query incorrect, or my expectations? What query or service should I 
> be using to get the excluded criterion? (I'm having the same issue with 
> gender.)
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b558e8e0-3839-463d-a830-c0f1b053857d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Querying AdGr... C N
    • Re: Quer... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to