I think I've tried everything now. I have downloaded the new client library (2.5.0), but it didn't help. If I specify a path, the report is saved to disc. But when I replace $path with NULL, I get nothing. I have tried to print the response, but the result is empty. If I modify the reportUtils file and try to output $downloadSize and $result, I can only see a value in the $downloadSize variable. The code looks like this:
error_reporting(E_STRICT | E_ALL); $path = dirname(__FILE__) . '/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; require_once 'Google/Api/Ads/AdWords/Util/ReportUtils.php'; try { $clientId = 'XXXXXXXXXX'; $user = new AdWordsUser(NULL, NULL, NULL, NULL, NULL, NULL, $clientId); $reportDefinitionId = (float) 'XXXXXXXXX'; print ReportUtils::DownloadReport($reportDefinitionId, null, $user); } catch (Exception $e) { print $e->getMessage(); } Best Regards, Robert On 2 mar, 15:51, Eric Koleda <eric.kol...@google.com> wrote: > Hi Robert, > > Testing against the head version in subversion, using NULL for the $path > parameter is working as expected: > > print ReportUtils::DownloadReport($reportDefinitionId, NULL, $user); > > There was one change to the report download functionality since 2.4.1, but > I'm not sure if it's related to your issue: > > http://code.google.com/p/google-api-adwords-php/source/detail?r=121 > > Best, > - Eric Koleda, AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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