Google Adwords api广告系列管理(获取错误)

时间:2019-10-17 10:55:31

标签: google-apps-script google-ads-api adwords-api-v201109

我正在尝试设置“最大化转化价值”策略,但是 出现以下错误:

[BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations [0] 
.operand.biddingStrategyConfiguration.biddingStrategyType]

您能帮我吗?

以下是发出此请求的php代码:

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

工作类型:     MANUAL_CPC     TARGET_CPA     TARGET_ROAS     MAXIMIZE_CONVERSIONS

不起作用:     MAXIMIZE_CONVERSION_VALUE     TARGET_OUTRANK_SHARE

预先感谢 纳沙德·阿里亚尼

0 个答案:

没有答案