Hi Vipul,
Thank you for reaching out to us.
Upon checking, I could confirm that 'segments.hour' is not a valid field in the WHERE clause when 'shopping_performance_view' is the resource in the FROM clause. To prevent this kind of error, You can use the exact shopping_performance_view builder (https://developers.google.com/google-ads/api/fields/v14/shopping_performance_view_query_builder?hl=en) to see its selectable and filterable fields. Also, I would recommend that you use the Google Ads Query Builder (https://developers.google.com/google-ads/api/fields/v14/overview_query_builder?hl=en) and Query Validator (https://developers.google.com/google-ads/api/fields/v14/query_validator?hl=en) tools for constructing queries.
On the other hand, for our team to further check and provide you with appropriate recommendations, could you please provide us with the entire UI screenshot without cropping, including its customer ID, where you can see the data you want to retrieve in the API?
You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
![]() |
Google Ads API Team |
Hi,
Thanks for getting back to us.
I am expecting hour wise ad cost for items. Is there any way to achieve this ?
>> Can you confirm this is available in the Google Ads UI where you can filter by the hour in the same report? If yes, can you please share with us the whole Google Ads UI screenshot (without cropping)? We are asking for this because if this is available in the UI but not available in the API, we can create a feature request for this. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.