Hi,
thank you for your help. Following your recommendation, I am trying to get the cost using Account Performance Report for each account budget, but it shows different amounts than the Adwords Account budgets view. This is how UI looks: <https://lh3.googleusercontent.com/-sEFft1rUxL0/WCDFGt0vRMI/AAAAAAAAACA/sBzMKkKbrKgIiAb12HgdYPpKZ3GCXC2ZACLcB/s1600/Captura%2Bde%2Bpantalla%2B2016-11-07%2Ba%2Blas%2B18.16.30.png> First budget (Jun 16, 2016 - Jul 1, 2016) spend *76.26€* which is different to *79.25€*, the amount I get on the report for those dates. This is the PHP function for getting the account cost during dates: function GetAccountTotalCost(AdWordsUser $user, $dateRange) { $options = array('version' => ADWORDS_VERSION); $options['skipReportHeader'] = true; $options['skipColumnHeader'] = true; $options['skipReportSummary'] = false; $reportQuery = 'SELECT AccountCurrencyCode, Cost ' . 'FROM ACCOUNT_PERFORMANCE_REPORT ' . 'DURING ' . $dateRange; // Download report. $reportUtils = new ReportUtils(); $reportString = $reportUtils->DownloadReportWithAwql($reportQuery, null, $user, 'CSV', $options); $reportArray = array_filter(explode("\n", $reportString)); $reportSummary = explode(",",end($reportArray)); $totalCost = $reportSummary[1] / 1000000; print('Date '.$dateRange.' Cost='.$totalCost."\n"); } That returns: Date 20160616,20160701 Cost=79.25 > What am I missing? Thank you! El jueves, 3 de noviembre de 2016, 17:49:27 (UTC+1), Shwetha Vastrad (AdWords API Team) escribió: > > Hi, > > I'm afraid BudgetOrder spend is not available through the API. One way to > get this information is to get the total cost accrued for this account > using Account Performance Report > <https://developers.google.com/adwords/api/docs/appendix/reports/account-performance-report> > in > the duration during which the BudgetOrder was active and subtract this > value from the spendingLimit > <https://developers.google.com/adwords/api/docs/reference/v201609/BudgetOrderService.BudgetOrder#spendinglimit> > of > the BudgetOrder. > > The LastRequest > <https://developers.google.com/adwords/api/docs/reference/v201609/BudgetOrderService.BudgetOrderRequest> > > field contains the last set of values that were passed in through the > parent BudgetOrder for mutate.add and mutate.set. If you did not change the > startDateTime or endDateTime in the previous request, these fields may be > empty. If that's not the case, could you provide the complete SOAP request > and response logs so I can further investigate? Please use *Reply > privately to author* when responding. > > Regards, > Shwetha, AdWords API Team. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1f49abf6-1530-47d4-b8d8-a0293fc31208%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.