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:
[BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations.operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'TARGET_SPEND']
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...