2 messages in com.googlegroups.adwords-apiRe: getCampaignStats only returning a...
FromSent OnAttachments
Sander Marechal26 Feb 2008 08:51 
AdWords API Advisor26 Feb 2008 10:19 
Subject:Re: getCampaignStats only returning a single StatsRecord?
From:AdWords API Advisor (adwo@google.com)
Date:02/26/2008 10:19:34 AM
List:com.googlegroups.adwords-api

Hello Sander,

getCampaignStats() returns statistics for campaigns over a time period, with each campaign's stats summarized into a single record. If you need the statistics aggregated daily instead of summarized, your best bet is to run a custom report via the ReportService.

The documentation is correct in that an array of StatsRecord objects will be returned, one per campaign id you specify. If you're only asking for stats for one campaign, you'll get back a single-element array.

Cheers, -Jeff Posnick, AdWords API Team

On Feb 26, 11:51 am, Sander Marechal <sand@tribal.nl> wrote:

Hello,

Is it correct that in the v11 API getCampaignStats only returns a single StatsRecord with the summation of the period you asked for? The v11 reference states that it should return an array of StatsRecords, one for each day in the period.

Bug in the API or bug in the documentation?