Age and Gender Setting in Campaign / AdGroup

326 views
Skip to first unread message

Powell Chu

unread,
Jun 16, 2021, 11:49:15 PM6/16/21
to AdWords API and Google Ads API Forum
Hi,

I have read from previous posts that you can only exclude age group(s) and/or gender(s) from a campaign / ad group. I was able to do so. However, is there a way to remove the exclusion of an existing campaign / adgroup, or do I have to delete the campaign / ad group and create a new one if I want to change the age / gender?


Also, is there a way to check which age range group are enabled / excluded in a campaign / ad group using GAQL? Currently I have tried the following:

SELECT 
                ad_group_criterion.age_range.type,
                campaign.name,
                campaign.id,
                campaign.status,
                ad_group.name,
                ad_group.id,
                ad_group.status,
                ad_group_criterion.system_serving_status,
                ad_group_criterion.bid_modifier
FROM age_range_view
WHERE ad_group.id = {adGroupId}

But this only illustrates the metrics within a particular age group, but not whether the age group is included / excluded in the campaign / ad group?



Google Ads API Forum Advisor

unread,
Jun 18, 2021, 2:40:28 PM6/18/21
to pow...@graphika.tech, adwor...@googlegroups.com

Hi Powell,

Thank you for reaching out. There is no need to recreate the campaign/ad group. You could simply utilize the AdGroupCriterionService.MutateAdGroupCriteria() and perform the remove operation to remove that criterion from the entity. To check what age group or gender group have been excluded, you could query the ad_group_criterion.age_range.type and Ad_group_criterion.gender.type from the ad_group_criterion resource.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IwPgD:ref
Reply all
Reply to author
Forward
0 new messages