Hi Roberto, The values returned in campaignStats depend on the daterange you specify in the selector. See https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.Selector#dateRange for details. The data should be ready for download around 4 AM, but it could potentially change later due to adjustments for click fraud and other manual adjustments. See adwordsapi.blogspot.com/2011/06/statistics-in-reports.html for details on freshness of reporting and stats data.
Cheers, Anash P. Oommen, AdWords API Advisor. On Tuesday, 24 April 2012 18:18:23 UTC+5:30, roberto wrote: > > I have been trying to calculate the campaign budget spent at the end of > the day, it is my understanding that Google updates campaign budget cost at > 04:00 or sometimes around that hour and I would like to know for each day > how much budget was spent but I'm not sure I understand how data is > represented. > Getting campaign data via the API can give me the initial budget via > campaign->budget and get 'cost' via campaign->campaignStats->cost but I'm > still failing to see how cost is calculated for a given time period, would > cost be the entire campaign cost for the time it has been running or does > it reset each day and when Google updates the cost represents the cost for > the budget time period (DAILY or MONTHLY) ? > > I cannot test this using real numbers since I'm currently working on the > sandbox so I'm asking for your help. > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
