Hi Adwords Forum,

I'd like to set the keywordMaxCPC for all adgroups under a campaign to
a single value.
According to the specs, this can be accomplished  by setting the
explicitAdGroupBids field:

http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.ConversionOptimizerBiddingTransition.html

However, my XML request gives me a type error :

Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'v20:biddingTransition'. One of '{"https://
adwords.google.com/api/adwords/cm/v200909":BiddingTransition.Type,
"https://adwords.google.com/api/adwords/cm/v200909":useSavedBids}' is
expected


The error might be due to the new tighter validation in sandbox, but I
can't figure  out what could be causing my problem. I am passing a
type "ConversionOptimizerBiddingTransition" for the biddingTransition
field.   I appreciate any suggestions/ help/xml samples for setting  a
biddingTransition!


Request:
======

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909">
   <soapenv:Header>
      <v20:RequestHeader>
         <!--Optional:-->
         <v20:applicationToken/>
         <!--Optional:-->
         <v20:authToken>xxxxxx</v20:authToken>
         <!--Optional:-->
         <v20:clientEmail/>
         <v20:clientCustomerId>6869045530</v20:clientCustomerId>
         <!--Optional:-->
         <v20:developerToken>xxxxxx</v20:developerToken>
         <!--Optional:-->
         <v20:userAgent></v20:userAgent>
         <!--Optional:-->
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutate xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909">
         <!--Zero or more repetitions:-->
         <v20:operations xmlns:v20="https://adwords.google.com/api/
adwords/cm/v200909" >
            <!--Optional:-->


        <v20:biddingTransition
xsi:type="v20:ConversionOptimizerBiddingTransition" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"  >

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

                <v20:explicitAdGroupBids xsi:type="v20:ManualCPCAdGroupBids"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
                        <v20:keywordMaxCpc>
                                <v20:amount>
                                        
<v20:microAmount>240000</v20:microAmount>
                                </v20:amount>
                        </v20:keywordMaxCpc>
                </v20:explicitAdGroupBids>

        <v20:biddingTransition>

              <v20:operator>SET</v20:operator>
              <v20:operand>
               <!--Optional:-->
                <v20:id>152064</v20:id>
               <!--Optional:-->

               <!--Optional:-->
               <v20:status>ACTIVE</v20:status>



               <!--Optional:-->
               <v20:endDate>20101231</v20:endDate>
               <!--Optional:-->
               <v20:budget>
                  <!--Optional:-->
                  <v20:period>DAILY</v20:period>
                  <!--Optional:-->
                  <v20:amount>
                     <!--Optional:-->
                     <v20:ComparableValue.Type>Money</
v20:ComparableValue.Type>
                     <!--Optional:-->
                     <v20:microAmount>30000</v20:microAmount>
                  </v20:amount>
                  <!--Optional:-->
                  <v20:deliveryMethod>STANDARD</v20:deliveryMethod>
               </v20:budget>
               <!--Optional:-->

               <!--Optional:-->
               <v20:autoKeywordMatchingStatus>OPT_IN</
v20:autoKeywordMatchingStatus>
               <!--Optional:-->

               <!--Optional:-->

               <!--Optional:-->
               <v20:frequencyCap>
                  <!--Optional:-->
                  <v20:impressions>20</v20:impressions>
                  <!--Optional:-->
                  <v20:timeUnit>DAY</v20:timeUnit>
                  <!--Optional:-->
                  <v20:level>ADGROUP</v20:level>
               </v20:frequencyCap>
            </v20:operand>
         </v20:operations>
      </v20:mutate>
   </soapenv:Body>
</soapenv:Envelope>


Reply:
====

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>Unmarshalling Error: cvc-complex-type.2.4.a:
Invalid content was found starting with element
'v20:biddingTransition'. One of '{"https://adwords.google.com/api/
adwords/cm/v200909":BiddingTransition.Type, "https://
adwords.google.com/api/adwords/cm/v200909":useSavedBids}' is
expected.</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to