Tuesday, 27 September 2016

Re: Enhanced Cpc Bidding

Now My code view like this:


            $campaign = new Campaign();
                . . .



  $biddingStrategyService = $user->GetService('BiddingStrategyService', ADWORDS_VERSION);


            $biddingStrategyConfiguration = new SharedBiddingStrategy();
  $biddingStrategyConfiguration->name = "AutoCPC " . uniqid();
            $biddingScheme = new EnhancedCpcBiddingScheme();
            $biddingStrategyConfiguration->biddingScheme = $biddingScheme;
            $biddingStrategyConfiguration->status = "ENABLED";
            $biddingStrategyConfiguration->type = 'ENHANCED_CPC';
            
            $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration;

            
                 .  .  .




And still not work :/
I've got error:

An error has occurred: [BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'ENHANCED_CPC']



W dniu wtorek, 27 września 2016 10:18:23 UTC+2 użytkownik Joyce Lava napisał:
Hi,

You may refer in this example code (PHP client library example) to see how to create the SharedBiddingStrategy and set its id as the BiddingStrategyConfiguration.biddingStrategyId. The example code uses TargetSpendBiddingScheme (which also valid as a portfolio strategy, highlighted in this line). You may replace the TargetSpendBiddingScheme into EnhancedCpcBiddingScheme from the example code to use ENHANCED_CPC. Hope this helps.

Thanks,
Joyce, AdWords API Team

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3f36c39d-24b8-4b32-936d-35464df00f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment