I'm querying this view:
https://developers.google.com/google-ads/api/fields/v9/search_term_view#segments.keyword.ad_group_criterion
This is the query which worked in the old API:
SELECT AdGroupId, CampaignId, Clicks, Cost, Impressions, Query, Device, KeywordId, Date FROM SEARCH_QUERY_PERFORMANCE_REPORT
The csv returned by this report contains "Product group ID" in the KeywordId column.
When trying the equivalent query in the new API:
SELECT ad_group.id, campaign.id, metrics.clicks, metrics.cost_micros, metrics.impressions, search_term_view.search_term, segments.device, segments.keyword.ad_group_criterion, segments.date FROM search_term_view
the response contains zero rows.
As soon as I remove the segments.keyword.ad_group_criterion from the SELECT fields, the response gives the expected result, missing the segmentation and value for "Product Group ID".
Please let me know what should be done to get the segmentation and value for "Product Group ID".
Thank you!