Hello, I'm trying to set the Maximize conversion value strategy but I'm getting the following error:
[BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations [0] .operand.biddingStrategyConfiguration.biddingStrategyType] (500 Internal Server Error)
Can you help me with this?
Following is the php code that is making this request:
$campaignService = $this->adWordsServices->get($session, CampaignService::class);
$campaign = new Campaign();
$campaign->setId($campaignId);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->setBiddingStrategyType(
BiddingStrategyType::MAXIMIZE_CONVERSION_VALUE
);
$scheme = new MaximizeConversionValueBiddingScheme();
$biddingStrategyConfiguration->setBiddingScheme($scheme);
$campaign->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
$operation = new CampaignOperation();
$operation->setOperand($campaign);
$operation->setOperator(Operator::SET);
$operations[] = $operation;
$result = $campaignService->mutate($operations);