NAME

Google::Ads::AdWords::Deserializer

DESCRIPTION

Google::Ads::AdWords::Deserializer extends the SOAP::WSDL::Deserializer::XSD module. The default deserializer used by <SOAP::WSDL|SOAP::WSDL>. Above the normal functionality of SOAP::WSDL::Deserializer::XSD, this module implements hooks into Google::Ads::AdWords::Logging to simplify logging and keeping track of all the information in the AdWords API response headers.

METHODS

deserialize

A method automatically invoked by SOAP::WSDL when an incoming SOAP XML response needs to be deserialized.

Parameters

The SOAP XML response string.

Returns

A SOAP::WSDL object representing the SOAP response. Most of the API calls return their result wrapped within an <rval> tag, that gets unwrapped and the inner object is returned instead in those cases.

Exceptions

If deserialization fails or the SOAP response contains a SOAP::WSDL::SOAP::Typelib::Fault11 object and Google::Ads::AdWords::Client::get_die_on_faults() is set to true, then a die call is triggered.

If Google::Ads::AdWords::Client::get_die_on_faults() is set to false then the deserialized message will be passed back, containing a SOAP::WSDL::SOAP::Typelib::Fault11 object.

generate_fault

A method automatically invoked on deserialization if an error occurred and Google::Ads::AdWords::Client::get_die_on_faults() is set to true.

Parameters

A SOAP::WSDL::SOAP::Typelib::Fault11 object.

Exceptions

Always die()s with the value of the input parameter's message.

LICENSE AND COPYRIGHT

Copyright 2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

AUTHOR

David Torres <api.davidtorres at gmail.com>

REPOSITORY INFORMATION

$Rev: $
$LastChangedBy: $
$Id: $