Hi Ralf,

Each type of bidding strategy is only valid as a shared strategy or as a 
non-shared strategy. The *TARGET_SPEND *type is only valid as a shared 
strategy, so you'll have to create the bidding strategy via 
BiddingStrategyService 
<https://developers.google.com/adwords/api/docs/reference/v201406/BiddingStrategyService>,
 
and then use the returned SharedBiddingStrategy.id 
<https://developers.google.com/adwords/api/docs/reference/v201406/BiddingStrategyService.SharedBiddingStrategy#id>
 to 
set up your Campaign's biddingStrategyConfiguration 
<https://developers.google.com/adwords/api/docs/reference/v201402/CampaignService.Campaign#biddingStrategyConfiguration>
.

I recommend taking a look at our Bidding guide 
<https://developers.google.com/adwords/api/docs/guides/bidding>, which 
covers this in detail.

Thanks,
Josh, AdWords API Team

On Wednesday, July 30, 2014 2:53:33 PM UTC-4, Ralf Kraus wrote:
>
> Hello,
>
>  
>
> I am running into problem while setting a BiddingStrategyConfiguration in 
> my campaign:
>
>  
>
> here a example of my php code:
>
>  
>
> $biddingScheme = new TargetSpendBiddingScheme();
> $biddingScheme->bidCeiling = new Money(1 * 1000000);
>
> $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
> $biddingStrategyConfiguration->biddingStrategyType   = "TARGET_SPEND";
> $biddingStrategyConfiguration->biddingStrategySource = 'CAMPAIGN';
> $biddingStrategyConfiguration->biddingScheme = $biddingScheme;
>
> $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration;
>
>  
>
> Everytime I am running this error:
>
>  
>
> INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE
>
>  
>
> [BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ 
> operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; 
> trigger:'TARGET_SPEND']
>
>  
>
> Any hints?
>
>  
>
> Greetings,
>
>  
>
> Ralf Kraus
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to