how to get audience names associated with ad groups

112 views
Skip to first unread message

E.G.

unread,
Apr 22, 2021, 4:36:29 PM4/22/21
to AdWords API and Google Ads API Forum
Hello

I am trying to get all audience names associated with my ad groups through the ads api.

It looks like I need to query ad_group_audience_view or ad_group_criterion for ad_group_id, ad_group_criterion.type, and depending on the type make a second query to other resource such as custom_audience to fetch the name, is this correct? Is there any advantage to query ad_group_audience_view vs ad_group_criterion? Is there any way to do this with one query only? 




Google Ads API Forum Advisor Prod

unread,
Apr 23, 2021, 7:49:13 AM4/23/21
to eg...@newengen.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. You can use the ad group criterion resource for this purpose. For example you might use the query:

  "SELECT ad_group_criterion.user_list.user_list, user_list.name, ad_group.name FROM ad_group_criterion"

The query builder can be a useful tool for creating queries. 

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2FasI1:ref

E.G.

unread,
Apr 23, 2021, 12:24:25 PM4/23/21
to AdWords API and Google Ads API Forum
Right, we can get user_list names directly from ad_group_criterion. But what about other audience types, like custom_audience? I don't see an option for custom_audience name.

E.G.

unread,
Apr 23, 2021, 1:50:22 PM4/23/21
to AdWords API and Google Ads API Forum
Also, if my audience was applied at the campaign level, can it still show up in ad_group_criterion for ad groups associated with the campaign? Or will I need to make another query for campaign_criterion?

Google Ads API Forum Advisor Prod

unread,
Apr 26, 2021, 2:19:48 AM4/26/21
to eg...@newengen.com, adwor...@googlegroups.com
Hi,

I work with Matt and let me provide support to your concern.

The ad_group_criterion report could return the details of the audiences that are listed here. However, the name field of the custom audience is not present on this report type. However, you may use the custom_audience instead and include the custom_audience.name to get the name of the custom audience.

As for retrieving the audiences that were applied at the campaign level, you are correct that you need to make another query using campaign_criterion.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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