The following code generates a report for me:

  $user = new AdWordsUser();
  $user->LogDefaults();

  $reportDefinitionId = (float) '131128463';

  $result = ReportUtils::RunAsyncReport($reportDefinitionId,
$queryToken, $user, $options);

This is the old CrossClient type of download.


This code, however:
  $user = new AdWordsUser();
  $user->LogDefaults();

  $reportDefinitionId = '131128463';

  ReportUtils::DownloadReport($reportDefinitionId, $path, $user,
$options);

produces:
  The client customer ID must be specified for report downloads.


Fair enough, change the above to:

  $user = new AdWordsUser();
  $user->LogDefaults();
    $user->SetClientId('3924112376');

  $reportDefinitionId = '131128463';

  ReportUtils::DownloadReport($reportDefinitionId, $path, $user,
$options);

produces:
    [ReportDefinitionError.INVALID_REPORT_DEFINITION_ID @
selector.selector; errorDetails:reportDefinitionId=ReportDefinitionId:
131128463, customerId=27968988, changeId=0]

which seems very strange to me - the customerId (27968988) not only
doesn't match $user->SetClientId, but it is also only 8 digits, when I
think clientId's are supposed to be at least 9 digits long.


Please let me know what I'm doing wrong here (and also, when you do
set the clientId, how to set it for all of your subaccounts).

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to