Bid Strategy

35 views
Skip to first unread message

Alex Junior

unread,
Aug 27, 2019, 8:23:19 PM8/27/19
to AdWords API and Google Ads API Forum
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);

Google Ads API Forum Advisor Prod

unread,
Aug 28, 2019, 1:27:54 AM8/28/19
to adwor...@googlegroups.com
Hi Alex,

To better investigate, could you confirm if you are encountering this consistently? Also, could you provide the complete SOAP request and response logs that were generated when the issue occurred?

You may send your reply using the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UHEt2g:ref
Reply all
Reply to author
Forward
0 new messages