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

Learning without thought is labor lost; thought without learning is perilous. - Confucius
WebChalkboard.com | For the love of art...

In reply to SOAP Fault: No deserializer defined for array type by webchalkboard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.