Register for one of our upcoming Google Ads Scripts workshops.

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

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。