Hello. I have several problemv with using BiddingStrategyConfiguration.
First, i cant set TargetSpend Binnding on campaign creation: $biddingScheme = new \TargetSpendBiddingScheme(); $biddingScheme->bidCeiling = new \Money(1000000); $biddingStrategyConfiguration = new \BiddingStrategyConfiguration(); $biddingStrategyConfiguration->biddingScheme = $biddingScheme; $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; $operation = new \CampaignOperation(); $operation->operand = $campaign; $operation->operator = 'ADD'; I get error : [BiddingErrors.INVALID_BIDDING_SCHEME @ operations[0].operand.biddingStrategyConfiguration.biddingScheme; trigger:'When a named bidding strategy is being set biddingScheme must be null'] Ok, i try this: $biddingStrategyConfiguration = new \BiddingStrategyConfiguration(); $biddingStrategyConfiguration->biddingStrategyType = 'TARGET_SPEND'; $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; I get error: BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'TARGET_SPEND' Then use this code campaign create successfuly: $biddingScheme = new \ManualCpcBiddingScheme(); $biddingScheme->enhancedCpcEnabled = false; $biddingStrategyConfiguration = new \BiddingStrategyConfiguration(); $biddingStrategyConfiguration->biddingScheme = $biddingScheme; I try change "enhancedCpcEnabled" to true. Error: [BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN @ operations[0].operand.biddingStrategyConfiguration.biddingScheme.enhancedCpcEnabled; trigger:'true'] -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 --- 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 [email protected]. 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/bf838c7e-ce99-4a86-bf92-0540917d29c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
