In testing the Perl interface to the sandbox for examples/v201109/
add_campaign.pl, I repeatedly got the following error:

== start ==
Error deserializing message: A fault was returned by the server:
Unmarshalling Error: cvc-type.2: The type definition cannot be
abstract for element biddingStrategy.
.
Message was:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</
faultcode><faultstring>Unmarshalling Error: cvc-type.2: The type
definition cannot be abstract for element biddingStrategy. </
faultstring></soap:Fault></soap:Body></soap:Envelope> at /home/
weborama/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/Google/
Ads/AdWords/Deserializer.pm line 57.
== end ==

I have tracked this down to an apparent module load ordering issue.
Ordinarily the Client and Logging modules are loaded first:

    use
Google::Ads::AdWords::Client;
    use Google::Ads::AdWords::Logging;
    use Google::Ads::AdWords::v201109::Budget;
    use Google::Ads::AdWords::v201109::BudgetOptimizer;
    use Google::Ads::AdWords::v201109::Campaign;
    use Google::Ads::AdWords::v201109::CampaignOperation;
    use Google::Ads::AdWords::v201109::ManualCPC;
    use Google::Ads::AdWords::v201109::Money;
    use Google::Ads::AdWords::v201109::NetworkSetting;

When this happens, I can successfully create campaigns. However, if
those two modules are loaded after the v201109 modules (no other
changes are needed), then the "abstract biddingStrategy" error occurs:

    use Google::Ads::AdWords::v201109::Budget;
    use Google::Ads::AdWords::v201109::BudgetOptimizer;
    use Google::Ads::AdWords::v201109::Campaign;
    use Google::Ads::AdWords::v201109::CampaignOperation;
    use Google::Ads::AdWords::v201109::ManualCPC;
    use Google::Ads::AdWords::v201109::Money;
    use Google::Ads::AdWords::v201109::NetworkSetting;
    use Google::Ads::AdWords::Client;
    use Google::Ads::AdWords::Logging;

Can anyone replicate this?

    $ uname -a
    Linux ovid-laptop 2.6.32-36-generic #79-Ubuntu SMP Tue Nov 8
22:29:53 UTC 2011 x86_64 GNU/Linux
    $ perl -v
    This is perl 5, version 12, subversion 2 (v5.12.2) built for
x86_64-linux

Cheers,
Ovid

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to