Please check this post: https://groups.google.com/forum/#!topic/adwords-api/pRY0N6yQzvE
On Tuesday, October 14, 2014 2:39:17 PM UTC+1, Alan Coleman wrote: > > Thanks for commenting Oliver, > > BUDGET_OPTIMIZER is in the API Documentation > <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignService.Campaign> > > > I'm just trying to replicate a campaign as closely as possible. > > Thanks again. > > On Tuesday, October 14, 2014 2:20:12 PM UTC+1, Oliver wrote: >> >> I thought Budget Optimizer strategies were deprecated a long time ago? >> >> Oliver >> >> >> On Tuesday, October 14, 2014 11:32:24 AM UTC+1, Alan Coleman wrote: >>> >>> >>> Hello everyone, >>> >>> I have a campaign that I'd like to duplicate with the following >>> BiddingStrategyConfiguration object >>> >>> >>> *object*(*BiddingStrategyConfiguration*)[*52*] >>> *public* 'biddingStrategyId' => null >>> *public* 'biddingStrategyName' => null >>> *public* 'biddingStrategyType' => string 'BUDGET_OPTIMIZER' >>> *(length=16)* >>> *public* 'biddingStrategySource' => null >>> *public* 'biddingScheme' => >>> *object*(*BudgetOptimizerBiddingScheme*)[*53*] >>> *public* 'bidCeiling' => >>> *object*(*Money*)[*55*] >>> ... >>> *public* 'enhancedCpcEnabled' => boolean false >>> *public* 'BiddingSchemeType' => string >>> 'BudgetOptimizerBiddingScheme' *(length=28)* >>> *private* '_parameterMap' (BiddingScheme) => >>> *array* *(size=1)* >>> ... >>> *public* 'bids' => null >>> >>> >>> >>> I'm using the following to create the biddingStrategyConfiguration >>> >>> >>> $biddingStrategyConfiguration->biddingStrategyType = 'BUDGET_OPTIMIZER'; >>> $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; >>> >>> >>> Which is producing the following bidding error >>> >>> >>> *object*(*BiddingErrors*)[*36*] >>> *public* 'reason' => string >>> 'CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN' *(length=42)* >>> *public* 'fieldPath' => string >>> 'operations[0].operand.biddingStrategyConfiguration.biddingStrategyType' >>> *(length=70)* >>> *public* 'trigger' => string 'BUDGET_OPTIMIZER' *(length=16)* >>> *public* 'errorString' => string >>> 'BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN' *(length=56)* >>> *public* 'ApiErrorType' => string 'BiddingErrors' *(length=13)* >>> >>> >>> Here is the SOAP error >>> >>> >>> <soap:Fault> >>> <faultcode>soap:Server</faultcode> >>> <faultstring>[SelectorError.MISSING_PREDICATE_VALUES @ >>> serviceSelector]</faultstring> >>> <detail> >>> <ApiExceptionFault >>> xmlns="https://adwords.google.com/api/adwords/cm/v201406"> >>> <message>[SelectorError.MISSING_PREDICATE_VALUES @ >>> serviceSelector]</message> >>> >>> <ApplicationException.Type>ApiException</ApplicationException.Type> >>> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:type="SelectorError"> >>> <fieldPath>serviceSelector</fieldPath> >>> <trigger/> >>> >>> <errorString>SelectorError.MISSING_PREDICATE_VALUES</errorString> >>> <ApiError.Type>SelectorError</ApiError.Type> >>> <reason>MISSING_PREDICATE_VALUES</reason> >>> </errors> >>> </ApiExceptionFault> >>> </detail> >>> </soap:Fault> >>> >>> Since providing a bidding scheme is optional I'm at a loss to know what >>> this is. >>> >>> >>> I have read the following documentation: >>> >>> >>> https://developers.google.com/adwords/api/docs/reference/v201406/CampaignService.Campaign >>> >>> https://developers.google.com/adwords/api/docs/reference/v201406/CampaignService.BiddingStrategyConfiguration >>> >>> >>> Has anyone had experience here they could share? >>> >>> >>> Many thanks >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/18f57022-800b-49e2-bc9f-ad709763df19%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.