Platforms

Set mobile bid modifier for a campaign

function setMobileBidModifier() {
  var campaignIterator = AdWordsApp.campaigns()
      .withCondition('Name = "INSERT_CAMPAIGN_NAME_HERE"')
      .get();
  if (campaignIterator.hasNext()) {
    var campaign = campaignIterator.next();
    // Retrieve the mobile target for campaign.
    var mobileTargetIterator = campaign.targeting().platforms().mobile().get();
    if (mobileTargetIterator.hasNext()) {
      mobileTarget = mobileTargetIterator.next();
      // Set the bid modifier for mobile platform.
      mobileTarget.setBidModifier(1.5);
    }
  }
}

发送以下问题的反馈:

此网页
AdWords Scripts
AdWords Scripts
需要帮助?请访问我们的支持页面