SELECT segments.product_item_id, segments.product_title, campaign.id, segments.product_channel, metrics.clicks, metrics.cost_micros, metrics.impressions, metrics.conversions, metrics.all_conversions, segments.month, segments.date FROM shopping_performance_view WHERE segments.date BETWEEN 'YYYY-MM-DD' AND 'YYYY-MM-DD' AND metrics.cost_micros > 0 AND campaign.id IN (campaign.id1, campaign.id2, campaign.id3)
I would request you please replace the campaign.id field that is present in the braces "campaign.id IN (campaign.id1, campaign.id2, campaign.id3)" with the campaign IDs for which you would like to retrieve the data. I have tried to retrieve the data using the above given GAQL query, and I'm able to retrieve the data successfully without any errors.
If you still need any further assistance, I request you kindly share the UI screenshot by highlighting the product performance data that you would like to retrieve via the Google Ads API.
You can send the details via Reply privately to the author option, or direct private reply to this email.![]() |
Google Ads API Team |
[2025-06-10 12:29:48Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01remjC:ref" (ADR-00313490)
Hi,
To check further and confirm, as requested earlier, kindly provide the uncropped Google Ads UI screenshot where the required data is presented, and the same you want to fetch via the API. This screenshot will help us to build the appropriate query and provide it to you.
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |
[2025-06-10 21:29:55Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01remjC:ref" (ADR-00313490)
Hi,
Please be informed that I have removed your response from the forums as it contains the PII information. By reviewing your query, I understand that you are getting the incorrect value for impressions for March month. As per provided screenshots, I could see that you want to retrieve the impressions of the product item for march and april months. Please use the below GAQL query to retrieve the impressions of the product item from the shopping_performance_view resource through the Google Ads API.
SELECT segments.product_item_id, metrics.impressions, metrics.clicks, metrics.cost_micros, segments.product_title FROM shopping_performance_view WHERE segments.product_item_id = 'XXXXXXX' AND segments.date BETWEEN 'YYYY-MM-DD' AND 'YYYY-MM-DD'
You can use the search or searchStream methods in making the API calls while retrieving the data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API. Additionally, please specify the product item ID and the start date and end date in the segments.date in the format of 'YYYY-MM-DD' for which dates you are trying to retrieve the data. I have tried to retrieve the data using the above GAQL query and I’m able to retrieve the ‘13533’ impressions for March month and ‘7623’ for April month.
Additionally, please note that both 'shopping_performance_view' and ' shopping_product' are able to return metrics at a product level. 'Shopping Performance View' will provide the 'historical' state of a product that has served ads, whereas 'Shopping Product' provides the current state of a product whether it has served ads or not. I would recommend you to refer to Reporting documentation for more detailed information.
![]() |
Google Ads API Team |
[2025-06-11 06:47:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01remjC:ref" (ADR-00313490)