Statistics aggregations

30 views
Skip to first unread message

Artem Savchenko

unread,
Feb 10, 2022, 12:47:45 PM2/10/22
to Google Ads API and AdWords API Forum
Hello,

Is it possible to get aggregate statistic for some period? I have query:

SELECT
  customer.id,
  metrics.average_cpc,
  metrics.clicks,
  metrics.ctr,
  metrics.impressions,
  metrics.cost_micros,
  segments.date
FROM customer
WHERE segments.date BETWEEN '$dateStart' AND '$dateEnd'";

With this query I get statistics for each day, between $dateStart and $dateEnd. But I need to get the aggregation for the period. Is is possible?

With kind regards, 

Artem Savchenko.

Google Ads API Forum Advisor

unread,
Feb 11, 2022, 3:30:17 AM2/11/22
to artem...@gmail.com, adwor...@googlegroups.com

Hi Artem,

Thanks for reaching out to the Google Ads API Forum.

In order to get metric statistics aggregation for the for a certain date period, have you tried to see the response when setting the value of summaryRowSetting to SUMMARY_ROW_ONLY value? If not, you may use the summaryRowSetting in your Search request and see if this helps you. 

Regards,

Google Logo
Yasar
Google Ads API Team
 

 

 



ref:_00D1U1174p._5004Q2W69MM:ref

Artem Savchenko

unread,
Feb 11, 2022, 5:52:13 AM2/11/22
to Google Ads API and AdWords API Forum
Yeah, It worked!

Thank you!

Bets, 

Artem.
Reply all
Reply to author
Forward
0 new messages