如何通过 API 更改 Google AdWords 广告系列中的广告最高每次点击费用
How to change ad maxCPC in Google AdWords campaign through API
我是 Google AdWords api 的新手,我想知道如何更改广告的每次点击费用。请不要严格地评判我。谢谢!
我已使用此代码更改广告状态,但我认为每次点击费用的更改方式相同。
// Get the CampaignService.
AdGroupAdService adService = (AdGroupAdService)user
.GetService(Google.Api.Ads.AdWords
.Lib.AdWordsService.v201406.AdGroupAdService);
List<AdGroupAdOperation> operations = new List<AdGroupAdOperation>();
AdGroupAd targetAd = new AdGroupAd
{
adGroupId = ad.GroupId,
ad = new Ad { id = ad.Id },
tatus = ad.IsActive ? AdGroupAdStatus.ENABLED: AdGroupAdStatus.PAUSED
};
AdGroupAdOperation co = new AdGroupAdOperation
{
@operator = Operator.SET,
operand = targetAd
};
operations.Add(ad);
adService.mutate(operations.ToArray());
我使用了 this 个有用的客户端库。