Regards I'm trying to schedule a report job using PHP's SoapClient but
I don't know how to create the arguments for that.
Here is a part of the PHP code creating the Report's arguments
structure.
That's the only problem that I have, please help with that
$wsdl = 'ReportService.wsdl'; //Using sandbox Report Service WSDL
$client = new SoapClient( $wsdl,array('proxy_host'=>$this-
>proxy['host'] , 'proxy_port' => $this->proxy['port'] ) );
$requestDef = array('job' => array('selectedReportType' => 'keyword',
'name'
=> 'Key word Report',
'aggregationTypes'
=> 'Summary',
'adWordsType'
=> 'SearchOnly',
'keywordType'
=> 'Broad',
'startDay'
=> '2009-09-29',
'endDay'
=>'2010-02-12',
'selectedColumns'
=> array( array('id' => 'Campaign'),
array('id' => 'budget'),
array('id' => 'CampaignStatus'),
array('id' => 'clicks'),
array('id' => 'Impressions'),
array('id' => 'CTR'),
array('id' => 'CPC'),
array('id' => 'Cost'),
array('id' => 'AveragePosition')
)
)
);
Then the SoapClient Builds the request with this structure.
<?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"
xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd"><SOAP-
ENV:Header><email>[email protected]</email>
<password>xxxxx</password>
<clientEmail>xxxxx</clientEmail>
<useragent>xxxxx</useragent>
<applicationToken>xxxxxx</
applicationToken>
<developerToken>xxxxx</developerToken>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:validateReportJob>
<ns1:job>
<ns1:endDay>2010-02-12</ns1:endDay>
<ns1:name>Key word Report</ns1:name>
<ns1:startDay>2009-09-29</ns1:startDay>
</ns1:job>
</ns1:validateReportJob>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see it only contains endDay,startDay and name properties,
please help me with that.
--
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.