Hello,

 Our SOAP server is confused because it expects the biddingStrategy
element to be set to a specific xsi:type, like

  <biddingStrategy xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="ManualCPC">

The out-of-the-box SOAP::WSDL library, which the AdWords API Perl
client library uses under the hood, is not very good about handling
xsi:types (at least not in the current production version). For that
reason, you need to make sure to use a patched version of a SOAP::WSDL
development build instead. There's a section in the README document
that describes how you can download, patch, and install the specific
version of SOAP::WSDL that's needed:

  http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/README#59

Cheers,
-Jeff Posnick, AdWords API Team


On Jul 28, 7:39 pm, Exiges <[email protected]> wrote:
> I'm trying to use the latest Perl library for the v200906 API (http://
> google-api-adwords-perl.googlecode.com/files/
> awapi_perl_lib_1.2.1.tar.gz) but I'm getting this error I don't
> understand:
>
> "Unmarshalling Error: Unable to create an instance of
> com.google.ads.api.services.campaignmgmt.campaign.v200906.jaxbgen.BiddingSt 
> rategy"
>
> Enabling SOAP debug, this is the outgoing request:
>
> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Header><RequestHeader
>  xmlns="https://adwords.google.com/api/
>
> adwords/cm/v200906"><applicationToken>MyAppToken</
> applicationToken><authToken>REDACTED</authToken><clientEmail>MyEmail</
> clientEmail><developerToken>MyDevToken</developerToken><userAgent>Perl
> Google::AdWords::Client v1.2.1: Xyz</userAgent></RequestHeader></SOAP-
> ENV:Header><SOAP-ENV:Body><mutate xmlns="https://adwords.google.com/
> api/adwords/cm/v200906"><operations><operator>ADD</
> operator><operand><name> 1248823406</name><status>ACTIVE</
> status><budget><period>DAILY</period><amount><microAmount>10000</
> microAmount></amount><deliveryMethod>STANDARD</deliveryMethod></
> budget><biddingStrategy><BiddingStrategy.Type>ManualCPC</
> BiddingStrategy.Type></biddingStrategy></operand></operations></
> mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>
>
> this is the incoming response:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>Unmarshalling Error: Unable to create an
> instance of
> com.google.ads.api.services.campaignmgmt.campaign.v200906.jaxbgen.BiddingSt 
> rategy
> </faultstring></soap:Fault></soap:Body></soap:Envelope>
>
> I tried to create a Campaign without a bidding strategy (hoping it
> would default to one) and it gives me the following, which I'm
> assuming means it wants a biddingStragegy
>
> [RequiredError.REQUIRED @ operations[0].operand.biddingStrategy]
>
> I get this in and out of the sandbox.
>
> Any help would be gratefully received.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to