How to get the number of clicks, views, and digested amount

57 views
Skip to first unread message

RYO O

unread,
Oct 4, 2021, 2:31:44 AM10/4/21
to AdWords API and Google Ads API Forum
Hello.

Right now, I'm running an API to get the monthly or daily number of clicks, number of displays, and digested amount by month or by day.

In order to get the data for each day of the year, we need to run the API 365 times.


How can I get the data for 365 days in a single API run?

Thanks,

Google Ads API Forum Advisor

unread,
Oct 5, 2021, 5:05:02 AM10/5/21
to climbe...@nifty.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to us.

On your query, you can actually set the date range to capture the 365 days. See sample query below using the campaign view. You can also check available reports here.

SELECT metrics.cost_micros, segments.date FROM campaign WHERE segments.date >= '2020-01-01' AND segments.date <= '2021-12-31'


Also, can you confirm the following fields below so we can also provide the actual report field equivalent?

  • get the monthly or daily number of clicks -> you can use the metrics.clicks field
  • number of displays
  • digested amount

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2OWLXn:ref

廖真

unread,
Oct 21, 2021, 5:53:28 AM10/21/21
to AdWords API and Google Ads API Forum
Hi

I try this GAQL, but got nothing. Has this feature been modified?

request: SELECT metrics.cost_micros, segments.date FROM campaign WHERE segments.date >= '2020-01-01' AND segments.date <= '2021-12-31'
response: {"fieldMask": "metrics.costMicros,segments.date"}

Google Ads API Forum Advisor

unread,
Oct 21, 2021, 11:19:03 PM10/21/21
to liao...@shoplazza.com, adwor...@googlegroups.com

Hello,

Thanks for getting back to us.

So our team can further check on this, can you share to us the following details below?

Please send the requested details 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.

Regards,

Reply all
Reply to author
Forward
0 new messages