Getting zero metric data.

52 views
Skip to first unread message

Bimal Ram

unread,
Dec 2, 2024, 12:32:26 AM12/2/24
to Google Ads API and AdWords API Forum
Hi Team,

I would like to pull records having zero metrics, say, if I have created a new hotel callout asset and till the asset is live, I won't be having any metrics, correct?. But I would still like to get its data such name, id etc through API.
Currently wen I'm not getting those data. Is there any way to get those records?

Thank You, Regards

Google Ads API Forum Advisor

unread,
Dec 2, 2024, 5:49:36 AM12/2/24
to bima...@techtaliya.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

Based on the provided information, I understand that you want to fetch the records having zero metrics through the Google Ads API. Please note that rows where all of the selected metrics have a value of zero will not be returned. In order to return rows that contain zero metrics, at least one of the metrics in your query must be non-zero. I would recommend you to go through this Zero Metrics documentation for more information.

I would recommend include at least one non-zero metric in your query and then attempt again to retrieve the asset details through the API.

I hope this helps. If you have any questions, please feel free to contact us.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGmsX:ref" (ADR-00277336)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 

 



Bimal Ram

unread,
Dec 2, 2024, 6:07:29 AM12/2/24
to Google Ads API and AdWords API Forum
Are there any fields that will always be a non-zero metric value?

Google Ads API Forum Advisor

unread,
Dec 2, 2024, 9:35:19 AM12/2/24
to bima...@techtaliya.com, adwor...@googlegroups.com

Hi,

Regarding your concern, you can indeed retrieve data such as the name and ID for assets, even if they have zero metrics, by using a query like the following:

SELECT asset.id, asset.name FROM asset

This will return the asset data (e.g., ID, name) even if the asset has not yet generated any metrics.

As for your query about fields in the Google Ads API that always return a non-zero value, initially, all metrics may be zero if the campaign or asset is not yet live. Over time, as your campaign or ads become active, these metrics will update with non-zero values.

Regarding your request for retrieving metrics from assets, it's important to note that metrics are not available for individual assets. You can retrieve metrics at the campaign, ad group, or ad group ad level instead. For more details, you can refer to the asset documentation.

Let us know if you need further assistance!
 

Reply all
Reply to author
Forward
0 new messages