Hello Zied, That type of error could occur if you're not actually passing any parameters in to the getReportJobStatus() API call. You should turn SOAP logging on in your code and check to see if that's the case. If it is, then take a look at why your $job_id variable isn't being properly populated--perhaps there's an error in the scheduledReportJob () call?
Cheers, -Jeff Posnick, AdWords API Team On Apr 24, 3:46 pm, "louhichi.z...@gmail.com" <louhichi.z...@gmail.com> wrote: > Hi guys; > I'm trying to get the report for my campaigns in sandbox Env. > I'm using Active Perl on winXp. > > I have this error on "schedule_report.pl" : > > ### BeginOfPerlScript ### > ...................... > > my $report_job = SOAP::Data->name('job' => > {'selectedReportType' => 'Keyword', > 'name' => 'SampleKeywordReport', > 'aggregationTypes' => ['Summary'], > 'adWordsType' => 'SearchOnly', > 'keywordType' => 'Broad', > 'startDay' => '2009-04-23', > 'endDay' => '2009-04-23', > 'selectedColumns' => [qw(Campaign AdGroup Keyword KeywordStatus > KeywordMinCPC > KeywordDestUrlDisplay Impressions Clicks > CTR > AveragePosition)] > }); > > $report_job->attr({'xsi:type' => 'DefinedReportJob', > 'xmlns' => 'https://adwords.google.com/api/adwords/ > v13'}); > eval { > # Validate report. > $service->call('validateReportJob' => $report_job, @headers); > > # Schedule report. > my $job_id = $service->call('scheduleReportJob' => $report_job, > @headers) > ->result(); > $job_id = SOAP::Data->name('reportJobId' => $job_id); > > # Wait for report to finish. > my $status = $service->call('getReportJobStatus' => $job_id, > @headers) > ->result(); > > print "\n ------------- status : $status > ----------------------------------------------------------------------------- > \n"; > while ($status ne 'Completed' and $status ne 'Failed') { > printf("Report job status is '%s'.\n", $status); > $count ++ ; > sleep(30); > > system("cls") ; > > $status = $service->call('getReportJobStatus' => $job_id, > @headers) > ->result(); > } > > if ($status eq 'Failed') { > die("Report job generation failed.\n"); > } > > # Download report. > my $report_url = $service->call('getGzipReportDownloadUrl' => > $job_id, > @headers)->result(); > printf("Report is available at '%s'.\n", $report_url); > > # Write report to local file. > my $gzip_report_data = LWP::Simple::get($report_url); > my $file = 'keyword_report.xml'; > IO::Uncompress::Gunzip::gunzip(\$gzip_report_data => $file); > printf("Report has been written to '%s'.\n", $file);}; > > ................................ > ### EndOfPerlScript ### > > I got this error : > > <soapenv:Fault> > <faultcode>Server.userException</faultcode> > > <faultstring>No such operation 'getReportJobStatus'</faultstring> > > <detail> > > Could someone help me ? > > Zied --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---