Hi Oksana,
Thanks for reaching out to the Google Ads API Forum
Yes, you are correct to get "type":"USER_INTEREST" using user_interest report to know affinity categories that are found here: https://developers.google.com/google-ads/api/reference/data/codes-formats#expandable-1
Upon checking your screenshot, I can see that you are referring to a custom combination segment. If my understanding is correct, then you may need to use user_list report instead. However, can you clarify if what you meant here is that while pulling custom combination segments using ad_group_audience_view report you are getting UNKNOWN in Google Ads API?
I asked this because I was able to pull the UI screen data using the below query for the AdWords optimized list customer combination segments. Here’s the below GAQL:
SELECT user_list.name,
FROM user_list
WHERE user_list.name LIKE 'AdWords optimized list'
Let us know if you are able to pull the said data using the above report on your end.
Regards,
|
||||||
|
||||||
Hi Oksana,
I'm Darwin, also a member of the Google Ads API team. I work with Nirmita & Yasar and allow me to assist you here. I hope you are doing well today.
Moving forward to your concern, could you please confirm if this is the subject of your private reply "Private message regarding: ad_group_audience_view, ad_group_criterion.type = UNKNOWN"? If yes, then, I want to inform you that my other colleague responded to your concern there. Allow me to reiterate his response to that thread please see below.
"Thank you for your private response. I was able to identify the UNKNOWN types (ex 95008 and 95009) as life events. However, this specific type does not appear to be currently supported in the ad_group_criterion.type. That said, you may instead retrieve their details using the life_event (ex. life_event.id, life_event.name) report. Let me know if this helps."
Let us know if you have further questions.
Regards,
|
||||||
Hi Oksana,
Thanks for getting back to us.
For your question “Could you please help me to understand a pattern on how to get Audience Segment NAME from API?”, you may use user_list.name field. However, for your question “How can we know that display_name that we get in report (ex 95008 and 95009) is Life event segments or Detailed demographic segments or Custom audience segments?” , you may see below:
If you're looking to replicate any Google Ads UI reports via Google Ads API, then you may provide us the complete Ads UI screenshot (not Excel screenshot) via reply privately to author option so that we can provide specific recommendations.
Regards,
|
||||||
|
||||||