Hi there,

It looks like you have something unexpected in your XML:

<biddingStrategy>
<BiddingStrategy.Type>ManualCPC</BiddingStrategy.Type>
</biddingStrategy>

Here's what the API is expecting:

<biddingStrategy xsi:type="ManualCPC" />

that is, an element called "biddingStrategy", with "ManualCPC" as its
xsi:type.

Since you didn't post your perl code, it's hard to tell what could be
wrong there. Perhaps the example at
http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/example/add_all.pl
would help?

Cheers,
Sérgio Gomes, AdWords API Team

---
On Jul 29, 12:50 am, 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