Hi Google Ads API Team, Thank you for the detailed suggestion regarding the user_interest resource for resolving uservertical display names. We appreciate the guidance. We implemented that logic, but unfortunately, it hasn't solved the core issue for our active campaigns. The problem appears to be more fundamental: the API is returning a different number of rows for metrics versus audience names for the same campaign and date range.
Here is what our logs now show for our test campaign (Campaign ID: 22709819255): *1. Mismatched Row Counts* When we query for metrics, we get 51 rows, but when we query for the audience names, we only get 6 rows. - Metrics Query (returns 51 rows): SELECT ad_group_criterion.criterion_id FROM ad_group_audience_view WHERE campaign.id = 22709819255 AND segments.date BETWEEN '...' AND '...' - Names Query (returns 6 rows): SELECT ad_group_criterion.criterion_id, ad_group_criterion.display_name FROM ad_group_criterion WHERE campaign.id = 22709819255 AND ad_group_criterion.type = AUDIENCE *2. Mismatched Criterion IDs* The criterion_ids returned by these two queries are also completely different, so we cannot join them. *3. Multiple Audience Types* Furthermore, our reports from the Google Ads UI show that our campaigns contain many audience types (In-market, Affinity, Custom Segments, etc.), not just the uservertical or AdGroupPersona types. Given this discrepancy, it's impossible for us to reliably map the metrics to the correct human-readable names. Could you please advise on the correct and reliable API workflow to get the display_name for every audience segment that has metrics in the ad_group_audience_view? Thank you for your continued help in resolving this. On Tue, 9 Sept 2025 at 22:21, Google Ads API Forum Advisor < [email protected]> wrote: > Hi, > > Based on the adGroupCriterion with criterion ID 51668104735 and > displayName: "uservertical::9280", you can use the user_interest > <https://developers.google.com/google-ads/api/fields/latest/user_interest> > resource > to fetch the audience segments you need, such as the one named "TV Lovers". > You can use the following query: > > SELECT user_interest.availabilities, user_interest.launched_to_all, > user_interest.name, user_interest.resource_name, > user_interest.user_interest_id, user_interest.taxonomy_type, > user_interest.user_interest_parent FROM user_interest WHERE > user_interest.user_interest_id = 92800 > > Additionally, you can utilize the *Google Ads Query Builder* > <https://developers.google.com/google-ads/api/fields/v16/overview_query_builder> > and *Query Validator* > <https://developers.google.com/google-ads/api/fields/v16/query_validator> to > build and validate the queries for retrieving the data from the Google Ads > API. > > Thanks, > > [image: Google Logo] Google Ads API Team > Feedback > How was our support today? > > [image: rating1] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001u622GIAQ> > [image: rating2] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001u622GIAQ> > [image: rating3] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001u622GIAQ> > [image: rating4] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001u622GIAQ> > [image: rating5] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001u622GIAQ> > [2025-09-09 14:21:11Z GMT] This message is in relation to case > "ref:!00D1U01174p.!500Ht01u622G:ref" (ADR-00332060) > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/CAK%3Db5%2BtwXQjJBKe1zLz6ZoNFRcHnAUhQHWpvCbk7sEFFOkCkkA%40mail.gmail.com.
