Re: How to change BiddingStrategy after creating a campaign?

2012-07-13 Thread Simon Day
Anyone?

On Tuesday, July 10, 2012 5:27:59 PM UTC+1, Simon Day wrote:

 Hi,

 I'm currently developing an interface object for a VB application so am 
 using rawAPI Calls. I'm having some issues changing the BiddingStrategy on 
 an existing campaign.

 This XML below:

 ?xml version='1.0' encoding='utf-8'?
 soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   soap:Header
 RequestHeader xmlns='
 https://adwords.google.com/api/adwords/cm/v201109'
   authTokenxx/authToken
   clientCustomerId8312754789/clientCustomerId
   developerToken/developerToken
   userAgentDevTest/userAgent
 /RequestHeader
   /soap:Header
   soap:Body
 mutate xmlns='https://adwords.google.com/api/adwords/cm/v201109'
   operations
 operatorSET/operator
 operand
   id692483/id
   nameNew Campaign XX/name
   statusPAUSED/status
   budget
 periodDAILY/period
 amountmicroAmount5000/microAmount/amount
 deliveryMethodSTANDARD/deliveryMethod
   /budget
   biddingTransition
targetBiddingStrategy xsi:type='ManualCPC' /
   /biddingTransition
 /operand
   /operations
 /mutate
   /soap:Body
 /soap:Envelope

 Gives this error:
 Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found 
 starting with element 'biddingTransition'. One of '{
 https://adwords.google.com/api/adwords/cm/v201109:biddingStrategy, 
 https://adwords.google.com/api/adwords/cm/v201109:conversionOptimizerEligibility,
  
 https://adwords.google.com/api/adwords/cm/v201109:campaignStats, 
 https://adwords.google.com/api/adwords/cm/v201109:adServingOptimizationStatus,
  
 https://adwords.google.com/api/adwords/cm/v201109:frequencyCap, 
 https://adwords.google.com/api/adwords/cm/v201109:settings, 
 https://adwords.google.com/api/adwords/cm/v201109:networkSetting}' is 
 expected. 

 Looking in the reference documents (
 https://developers.google.com/adwords/api/docs/reference/v201109/CampaignService.CampaignOperation#biddingTransition),
  
 and searching for examples in the forum everything looks to be right. 

 What am I missing, or doing wrong?

 Thanks
 Simon


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


Re: How to change BiddingStrategy after creating a campaign?

2012-07-13 Thread jstedman
Judging by the wsdl it is expecting to have biddingTransition nested in the 
opertaions as a campaign operation rather than nested in a campaign 
operation as an operand:

complexType name=CampaignOperation
  annotation
documentation
An operation on an AdWords campaign.
p class=notebNote:/b The codeREMOVE/code operator 
is not
supported. To remove a campaign, set its {@link Campaign#status 
status}
to codeDELETED/code./p
/documentation
  /annotation
  complexContent
extension base=tns:Operation
  sequence
element maxOccurs=1 minOccurs=0 name=biddingTransition 
type=tns:BiddingTransition
  annotation
documentation
Changes the bidding strategy for this campaign. Use 
only when performing a
codeSET/code operation.
/documentation
  /annotation
/element
element maxOccurs=1 minOccurs=0 name=operand 
type=tns:Campaign
  annotation
documentation
  span class=constraint RequiredThis field is required and 
should not be {@code null}./span
/documentation
  /annotation
/element
  /sequence
/extension
   /complexContent
/complexType

Forgive the terrible indentation, hope this helps you.

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