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

Send feedback about...

AdWords Scripts
AdWords Scripts
Need help? Visit our support page.