Hello,
I need to enlist the infinite wisdom of the wise perl monks for yet another problem I am facing.
I am trying to interface with the google adwords API, using the SOAP::Lite perl module. I have managed to do this for a number of API calls, however the customReport call doesn't seem to work for me.
Here is the code I am using, can anyone see anything syntactically wrong with it?
my $report = { 'name' => 'test', 'aggregationType' => 'Summary', 'startDate' => $startDate, 'endDate' => $endDate, 'campaigns' => 5214135, 'customOptions' => ['AveragePosition', 'Clicks', 'Cpc', 'Ke +yword', 'AdGroupId'], }; my $req = SOAP::Data->name("customReportJob", $report); $req->attr( { 'xsi:type' => 'impl:CustomReportJob', 'xmlns:impl' => $namespace } ); my $jobId = $service->scheduleReportJob($req, @headers);
The array @headers is defined to include lots of header information such as login information.
I think the problem lies in the way I am defining the customOptions array in the report hash.
Any and all help appreciated, has anyone on here used the google adwords API for anything?
Oh I should also mention that the script can be seen running here: http://81.29.77.110/cgi-bin/reportservice-new.pl
This is the error it produces.
SOAP Fault: org.xml.sax.SAXException: No deserializer defined for arra +y type {http://www.w3.org/1999/XMLSchema}ur-type for input "" (Error +Code ) at reportservice-new.pl line 248.
Thanks,
Tom
In reply to SOAP Fault: No deserializer defined for array type by webchalkboard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |