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);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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+unsubscr...@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/02f44699-c82a-418e-803f-08949b4f80dc%40googlegroups.com.

Reply via email to