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.)