Hi,
I am storing report definition id to DB when add report definition.
after that i try to download report.
my code is :

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

  $reportDefinitionId = (float) '1.98675e+01';
  $fileName = 'output_report.csv';

  $path = dirname(__FILE__) . '/reports/' . $fileName;

  // Download report.
  ReportUtils::DownloadReport($reportDefinitionId, $path, $user);

But i am getting error
"ReportDefinitionError.INVALID_REPORT_DEFINITION_ID@selector.selector".
Please note i have changed $reportDefinitionId for security.

Thanks,
Chirag

On Aug 31, 12:23 am, Kevin Winter <kevin.win...@google.com> wrote:
> Hi,
>   It looks like you are hardcoding the report definition id after creating
> the definition for a new report.  Are you sure that is a valid
> reportDefinitionId for the production environment?  Report definitions
> cannot be shared between production and sandbox, so if that came from the
> sandbox it will not work.
>
> Based on your code, I would have expected you to save the report definition
> you are creating and then download based on that instead of hardcoding the
> ID.  Try changing your code to do that.
>
> - Kevin Winter
> 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

Reply via email to