Hi,

It looks like the request XML doesn't contain the reportJobId to get
the URL of.  Can you ensure that you are passing in this value
correctly?

Best,
- Eric

On Jan 28, 3:16 pm, adword user <[email protected]>
wrote:
> I have made the necessasary changes and here is the updated code.
>
>    $soapHeaders = '<email>'.$email.'</email>'
>
> .'<password>'.$password.'</password>'
>
> //.'<clientEmail>'.$client_email.'</clientEmail>'
>
> .'<useragent>'.$useragent.'</useragent>'
>
> .'<developerToken>'.$developer_token.'</developerToken>'
>
> .'<applicationToken>'.$application_token.'</applicationToken>';
>
> $xmlvar = new SoapVar($soapHeaders,
>
>             XSD_ANYXML
>
> );
>
>  $namespace = 'https://adwords.google.com/api/adwords/v13';
>
> $endpoint = 'https://adwords.google.com/api/adwords/v13/ReportService?wsdl';
>
>  $client = new SoapClient($endpoint,  array(
>
>     'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
>
>     'encoding' => 'utf-8',
>
> 'trace' => 1));
>
> $header = new SoapHeader($namespace, 'Header', $xmlvar);
>
> $client->__setSoapHeaders($header);
>
> try {
>
> $jobs = $client->getAllJobs();
>
>  foreach ($jobs->getAllJobsReturn as $job) {
>
>  $reportUrl = $client->getGzipReportDownloadUrl($job->id);
>
>  var_dump($reportUrl);
>
> }
>
>  }
>
> catch (Exception $ex)
>
> {
>
> echo "REQUEST:\n" . $client->__getLastRequest() . "\n";
>
> var_dump($ex);
>
> }
>
> And the output is .
>
> This is the soap request.
>
> REQUEST:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:ns1="https://adwords.google.com/api/adwords/v13";><SOAP-ENV:Header><email>XXX</email><password>XXX</password><useragent>zoo
>  sk</useragent><developerToken>XXX</developerToken><applicationToken>Ignored 
> </applicationToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:getGzipReportDownl 
> oadUrl/></SOAP-ENV:Body></SOAP-ENV:Envelope>
>
> And then i get object(SoapFault)#22

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to