Hi Neil,
As you noticed the library dies at faults by default but you can override
this behavior by setting die_on_faults to 0, in which case the fault object
will be returned to you. So you can do something like:
my $page = $client->CampaignService()->get({serviceSelector => $selector});
if ($page->isa("SOAP::WSDL::SOAP::Typelib::Fault11")) {
print "Fault: ", $page->get_faultstring();
... Your error handling code ...
} else {
.. Your regular code ...
}
Best,
-David Torres - AdWords API Team
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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