Seriously, DO NOT USE THIS SCRIPT.
BMM Fixer
Now BMM is disappearing as a matchtype, this script will fix your account.
Start Now!Seriously, DO NOT USE THIS SCRIPT.
Google would want you to, but this script will change all of your BMM keywords to broadmatch. And, it will double all of your campaign budgets.
// Copyright 2021. Increase BV. All Rights Reserved.
// Not to be used without permission of the creator or Increase B.V.
//
// Created By: Tibbe van Asten
// for Increase B.V.
//
// Created: 04-02-2021
// Last update: 05-02-2021
//
// ABOUT THE SCRIPT
// With the disappearance of BMM as keyword matchtype, this script
// will fix your account the way Google wants it to. All BMM keywords
// change to broad ('+' removed) and your campaign budget will double.
//
////////////////////////////////////////////////////////////////////
var config = {
// You can try changing this, but you won't get anymore data or insights
// on actual changes
INSIGHTS : false
}
////////////////////////////////////////////////////////////////////
function main() {
var google;
var keywordIterator = AdsApp
.keywords()
.withCondition("Text CONTAINS '+'")
.withCondition("Status = ENABLED")
.withCondition("AdGroupStatus = ENABLED")
.withCondition("CampaignStatus = ENABLED")
.get();
Logger.log("Found " + keywordIterator.totalNumEntities() + " keywords to increase spend on");
while(keywordIterator.hasNext()){
var keyword = keywordIterator.next();
// Pause BMM and create new broad match keyword
keyword.pause();
var newKeyword = keyword.getText().replace(/\+/g, "");
keyword.getAdGroup().newKeywordBuilder().withText(newKeyword);
if(google == "transparent"){
Logger.log("Paused " + keyword.getText() + " and activated " + newKeyword);
}
} // keywordIterator
var campaignIterator = AdsApp
.campaigns()
.withCondition("Status = ENABLED")
.get();
Logger.log("To make this even better, budgets for " + campaignIterator.totalNumEntities() + " are doubled");
while(campaignIterator.hasNext()){
var campaign = campaignIterator.next();
// Get budget and double this!
var newBudget = campaign.getBudget().getAmount() * 2;
campaign.getBudget().setAmount(newBudget);
} // campaignIterator
}