Google::Ads::AdWords::Deserializer


Back to Top


NAME

Google::Ads::AdWords::Deserializer

Back to Top


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.

Back to Top


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 the SOAP::WSDL::SOAP::Typelib::Fault11 manpage object and Google::Ads::AdWords::Client::get_die_on_faults() is set to true, then a die call is triggered.

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

generate_fault

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

Parameters

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

Exceptions

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

Back to Top


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.

Back to Top


AUTHOR

David Torres <api.davidtorres at gmail.com>

Back to Top


REPOSITORY INFORMATION

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

Back to Top

 Google::Ads::AdWords::Deserializer