Google Ads Groups Campaigns Cost By Time Frame

22 views
Skip to first unread message

Ali Abdullah

unread,
Jun 24, 2021, 4:45:28 AM6/24/21
to AdWords API and Google Ads API Forum

Dears,


Could you please help me finding a way to calculate the cost during a specific time from, let's say last 12 hours, not a date frame.


Thanks

Google Ads API Forum Advisor

unread,
Jun 24, 2021, 5:44:32 AM6/24/21
to aliabdul...@gmail.com, adwor...@googlegroups.com
Hi Ali,

Thank you for posting your concern.

Since it appears that your concern is product specific. With this, I would suggest raising your concern to the product team via this link as they are more knowledgeable on how metrics / statistics are accumulated / computed on specific account for specific time frame.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IyJmy:ref

Pete Lavetsky (AdWords API Guru)

unread,
Jun 24, 2021, 9:30:01 AM6/24/21
to AdWords API and Google Ads API Forum
Hey Ali,

At this time you can only specify segments.date in YYYY-MM-DD format:

https://developers.google.com/google-ads/api/docs/query/date-ranges

Hope that helps
Pete

Google Ads API Forum Advisor

unread,
Jun 27, 2021, 11:45:51 PM6/27/21
to pete.l...@gmail.com, adwor...@googlegroups.com
Hi everyone,

To confirm, a 12 hour period is not possible to retrieve using the API, and also, the API only mirrors possible date ranges from the UI. That said, the possible date ranges that can be used is as shared by Pete earlier.

In addition, calculation of metrics is more of a product related concern. That also said, as mentioned by our colleague Ernie, please reach out to the Google Ads Product Support team, via this link, for more information regarding calculations and formulas involved for your metrics.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IyJmy:ref
Reply all
Reply to author
Forward
0 new messages