Get performance information in points, not in sum

11 views
Skip to first unread message

Phillip Stemann

unread,
May 23, 2019, 8:42:48 AM5/23/19
to AdWords API and Google Ads API Forum
Hi,

When I call the API to get performance numbers, I always get it in a sum? I want to get it on a daily basis, is that possible?

So instead of:
sum,100,200,300

Then I get maybe something like:
20/1,10,20,30
21/1,10,20,30
22/1,80,160,240
sum,100,200,300

Right now I do like this, but I get the sum instead of the number on a daily basis, what should I change?:

report.getReport('v201809', {
reportName: 'Custom Adgroup Performance Report',
reportType: 'CAMPAIGN_PERFORMANCE_REPORT',
fields: ['Impressions'],
filters: [
{ field: 'CampaignStatus', operator: 'IN', values: ['ENABLED', 'PAUSED'] }
],
dateRangeType: 'CUSTOM_DATE',
startDate: adsDate,
endDate: adsDate,
format: 'CSV'
}, (error, report) => {
if (report) {
report = report.split("\n").map(row => row.split(","))
report.pop()
}
impressions.push(report)
next()
})

Google Ads API Forum Advisor Prod

unread,
May 23, 2019, 3:05:17 PM5/23/19
to phi...@geniewords.com, adwor...@googlegroups.com
Hi Phillip, 

Yes, you will be able to segment the data on a daily basis by adding the Date field in your query. Could you please give this a try and let me know if you have any questions?

Thanks,
Bharani, Google Ads API Team

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