AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Ads
2K members online now
2K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me
star_border
Reply

INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

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

 

 

1 Expert replyverified_user

Re: INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE

Top Contributor
# 2
Top Contributor

Hi Ralf, the only thing I can see there is that you haven't defined a spendTarget for $biddingScheme.  This should use the budget if no value is specified but I can't see if you've defined budget elsewhere in your code.

 

I can't see anything wrong with the actual "TARGET_SPEND" part of the code so I suspect the failure is elsewhere, leading the whole thing to collapse...

 

Jon

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits