Currently we have targeted our campaign to a specific age/gender through 
the web interface:
[image: target.png]

I am now trying to retrieve this targeted demographic gender and age (Male, 
18 - 24) via the API, however my query below returns all possible enum 
values as opposed to what is actually targeted?:

*Query: *

SELECT
            ad_group_criterion.age_range.type,
            ad_group_criterion.gender.type
        FROM ad_group_criterion
        WHERE ad_group.id = {ad_group_id}

*Outputs:*

resource_name: "customers..."
gender {
  type_: MALE
}
resource_name: "customers..."
gender {
  type_: FEMALE
}
resource_name: "customers..."
gender {
  type_: UNDETERMINED
}
resource_name: "customers..."
age_range {
  type_: AGE_RANGE_18_24
}
resource_name: "customers..."
age_range {
   type_: AGE_RANGE_25_34
}
resource_name: "customers..."
age_range {
  type_: AGE_RANGE_35_44
}
etc..


Is there a way to retrieve only the targeted demographics given the 
ad_group_id so the output just looks like:

gender {
  type_: MALE
}
age_range {
  type_: AGE_RANGE_18_24
}
As shown in the targeted screenshot above.

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fafaccaa-37e6-469f-8853-f2fe944306f3n%40googlegroups.com.

Reply via email to