RE: How to get Audience segments information?

2022-01-13 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Chen,


I'm Kevin from the Google Ads API Team.


Since you're not querying for any metrics, I suggest you try this query "SELECT 
user_interest.name, ad_group_criterion.custom_affinity.custom_affinity, 
ad_group_criterion.display_name FROM ad_group_criterion WHERE ad_group.id = 
" to get the data based on your screenshot. I've tried this on my 
end and I was able to successfully get the same data as the UI.


Afterwards, you will need to send a separate API request in order to get the 
display name of the audience segment. You can refer to the following query for 
reference "SELECT detailed_demographic.name FROM detailed_demographic WHERE 
detailed_demographic.id = 'x'". The detailed_demographic.id is the 
ad_group_criterion.display_name from the first request.


If you encounter any issue or if you have any further clarification, just let 
me know the details and provide the complete request and response logs with 
request ID so I can further investigate. You may send these via Reply privately 
to author option. If this option is not available, you may send the details 
directly to our googleadsapi-supp...@google.com alias instead.


Regards,

Kevin Gil Soriano
Google Ads API Team
ref:_00D1U1174p._5004Q2Uj7um:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/BPEQO0R5NCY800NZoSmECiRqWtAYoElWa2sQ%40sfdc.net.


Re: How to get Audience segments information?

2022-01-12 Thread Chen Xiaowei
When I add user_list segment, it return null.

在2022年1月12日星期三 UTC+8 11:51:04 写道:

> Hi team, I want to get Audience segments like UI shows. I use  
> SELECT ad_group_audience_view.resource_name FROM ad_group_audience_view 
> SELECT campaign_audience_view.resource_name FROM  campaign  _audience_view
> and API returns  their resource_name which are only an id like 
> customers/XX/adGroupAudienceViews/133416813831~326804463039. 
> How can I get more detailed information including audience segment name, 
> type,targeting setting and status. Thanks,Vivi
> [image: audience segment.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f301ddd3-7f6f-4869-9236-4d22d7b1a8ean%40googlegroups.com.