Hi,

The changes to the validation are listed here:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/f5057acf438bc702/

In regards to the namespace prefix declarations, below is an example
of a request that will fail the new validation:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Header>
      <v20:RequestHeader>
         ...snip...
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutate>
         <v20:operations>
            <v20:operator>ADD</v20:operator>
            <v20:operand>
               <v20:name>Test Campaign 1268432644328</v20:name>
               <v20:status>ACTIVE</v20:status>
               <v20:budget>
                  <v20:period>DAILY</v20:period>
                  <v20:amount>
                     <v20:microAmount>1000000</v20:microAmount>
                  </v20:amount>
               </v20:budget>
               <v20:biddingStrategy xsi:type="v20:ManualCPC"/>
            </v20:operand>
         </v20:operations>
      </v20:mutate>
   </soapenv:Body>
</soapenv:Envelope>

This request will fail because the biddingStrategy field has an
xsi:type attribute that uses the namespace prefix "v20".  Although
this prefix is already defined on the soapenv:Envelope element, it
must be re-defined on the method element (mutate in this case) to pass
the XML validation.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Header>
      <v20:RequestHeader>
         ...snip...
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutate xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909">
         <v20:operations>
            <v20:operator>ADD</v20:operator>
            <v20:operand>
               <v20:name>Test Campaign 1268433413038</v20:name>
               <v20:status>ACTIVE</v20:status>
               <v20:budget>
                  <v20:period>DAILY</v20:period>
                  <v20:amount>
                     <v20:microAmount>1000000</v20:microAmount>
                  </v20:amount>
               </v20:budget>
               <v20:biddingStrategy xsi:type="v20:ManualCPC"/>
            </v20:operand>
         </v20:operations>
      </v20:mutate>
   </soapenv:Body>
</soapenv:Envelope>

Best,
- Eric

On Mar 12, 1:47 pm, forbidder <forbid...@gmail.com> wrote:
> Hello,
>
> Some of us can't use the prepackaged libraries from Google and rely on
> our own API libraries.  Can the expected Soap XML be posted so we can
> get our systems to generate this XML from our API's?
>
> This change comes at a very bad timing as we are performing QA on the
> conversion from Google API v13 to v2009.
>
> We're on a pretty tight deadline since v13 is sunsetting in April.
>
> Thanks!
>
> On Mar 11, 11:14 am, AdWords API Advisor
>
>
>
> <adwordsapiadvi...@google.com> wrote:
> > Hi All,
>
> > I've found the source of the problem and pushed out a fix to SVN.
>
> >  http://code.google.com/p/google-api-adwords-php/source/detail?r=51
>
> > Please update your library with the newest version of trunk and try
> > again.  If there aren't any problems I'll release a new version of the
> > client library that has this change.
>
> > Best,
> > - Eric
>
> > On Mar 11, 11:43 am, AdWords API Advisor
>
> > <adwordsapiadvi...@google.com> wrote:
> > > Hi,
>
> > > Thanks for this information.  I'm also seeing this error for PHP 5.2.6
> > > and below.  I'll work on a patch and update this thread when it's
> > > ready.
>
> > > Best,
> > > - Eric
>
> > > On Mar 11, 11:35 am, vlad <vlad.c...@gmail.com> wrote:
>
> > > > Thanks Chris
>
> > > > On Mar 11, 10:28 am, Christian Krahn <ckrahn1...@googlemail.com>
> > > > wrote:
>
> > > > > Confirmed. The PHP Framework works with Ubuntu 9.10 running PHP
> > > > > 5.2.10, but no longer on Ubuntu 9.04 running PHP 5.2.6.
>
> > > > > - Christian

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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