我已经创建了谷歌adCampaigns,adGroups,关键字,广告,位置使用谷歌广告应用程序接口,但我不能设置“设置最大成本每次点击投标限制”使用API

我已经使用此代码进行了设置,但未进行设置
$operations = [];
// Create ad group with the specified ID.
$groupId = $adGroup->getId();
$adGroupNew = new AdGroup();
$adGroupNew->setId($groupId);
$cpcBidMicroAmount = intval($_GET['cpc']) * 1000000;
// Update the CPC bid if specified.
if (!is_null($cpcBidMicroAmount)) {
$bid = new CpcBid();
$money = new Money();
$money->setMicroAmount($cpcBidMicroAmount);
$bid->setBid($money);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->setBids([$bid]);
$adGroup->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
}
// Create ad group operation and add it to the list.
$operation = new AdGroupOperation();
$operation->setOperand($adGroupNew);
$operation->setOperator(Operator::SET);
$operations[] = $operation;
// Update the ad group on the server.
$adGroupService->mutate($operations);发布于 2020-03-19 19:15:27
$biddingScheme = new TargetSpendBiddingScheme();
$bidCeiling = new Money();
$bidCeiling->setMicroAmount($_GET['cpc'] * 1000000);
$biddingScheme->setBidCeiling($bidCeiling);
$spendTarget = new Money();
$spendTarget->setMicroAmount($_GET['cpc'] * 1000000);
$biddingScheme->setSpendTarget($spendTarget);在活动级别执行此操作以设置最大出价限制
https://stackoverflow.com/questions/60740634
复制相似问题