Currently we have targeted our campaign to a specific age/gender through the web interface:
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!