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.