Skip to content

Instantly share code, notes, and snippets.

@BrainlabsDigital
BrainlabsDigital / Associated Search Analysis.js
Created September 21, 2017 12:31
Mines the search query report to find phrases that appear in the same searches as user specified text
/**
*
* Associated Search Analysis
*
* This script takes in a list of pieces of text, and finds the words and
* phrases that appear in the same search queries as that text. The found
* phrases and the performance of the queries they appear in are then reported
* in a Google Doc spreadsheet.
*
* Version: 1.0
@BrainlabsDigital
BrainlabsDigital / Campaign Budget Overspend Monitoring
Last active October 29, 2022 12:13
Labels (and optionally pauses) campaigns that are overspending too much, and emails you a warning.
/**
*
* Campaign Budget Overspend Monitoring
*
* This script labels campaigns whose spend today is more than their daily
* budgets. Optionally, it also pauses campaigns whose spend exceeds the
* budget by too much. An email is then sent, listing the newly labelled
* and paused campaigns.
* When spend no longer exceeds budget, the campaigns are reactivated and
* labels are removed.
@BrainlabsDigital
BrainlabsDigital / Copy Labels Between Keywords and Ads.js
Created December 15, 2017 17:52
Copies labels from ads to keywords in the same ad group, or from keywords to ads.
/**
* Copying Labels From Keywords To Ads Or Vice-Versa
*
* If a certain percentage of keywords (or ads) are labelled with a particular
* label within an ad group, the script applies the label to all ads (or
* keywords) in that ad group.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*/
@BrainlabsDigital
BrainlabsDigital / Domain Name Checker.js
Created April 3, 2018 09:44
Script to find if any ads or keywords have landing pages with the wrong domain.
/**
*
* Domain Name Checker
*
* This script will scan through your keyword and ad URLs, checking the domain
* names for anything out of place, and output any discrepancies it finds into a
* Google Sheet.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
@BrainlabsDigital
BrainlabsDigital / Pause Losing Ads.js
Created April 27, 2018 15:25
Script to find and label the best performing ads in each ad group, and label/pause the others.
/**
*
* Pause Losing Ads & Ad Rotate Analysis
*
* This script finds the best ad in each ad group (subject to thresholds) and
* calculates the performance you could have got if the impressions that went to
* losing ads went to the winning ads instead.
* Labels the winning and losing ads, and (optionally) pauses the losers.
*
* Version: 2.0
@BrainlabsDigital
BrainlabsDigital / Low Quality Score Alert.js
Created May 30, 2018 15:20
Script to email you if you have low quality score keywords, and optionally label/pause them
/**
*
* Low Quality Score Alert
*
* This script finds the low QS keywords (determined by a user defined threshold)
* and sends an email listing them. Optionally it also labels and/or pauses the
* keywords.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
@BrainlabsDigital
BrainlabsDigital / Expanding Phrase Match Negatives.js
Created June 8, 2018 15:27
Script to find potential negatives based on search queries that contain an existing phrase negative.
/**
*
* Expanding Phrase Match Negatives
*
* This script searches for all occurrences of phrase match negatives in search
* queries resulting from typos. Outputs a report to a Google Doc spreadsheet.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*
@BrainlabsDigital
BrainlabsDigital / Change in Campaign Spending Alert.js
Created July 25, 2018 15:01
Script to alert you if a campaign's spend has changed dramatically
/**
*
* Change in Campaign Spending Alert
*
* This script uses the current hour to calculate how much has been spent on
* individual campaigns on the day of running. The average spend up to the
* current hour in a specified numbers of days previously is averaged. If the
* spend today is higher by a specified percentage threshold an alert email
* is sent.
*
@BrainlabsDigital
BrainlabsDigital / AccountStructureChecker.js
Last active March 29, 2024 14:03
Account Structure Checker
/**
*
* Account Structure Checker
*
* This script will check your account for any missing keyword match types
* are output a report with the missing keywords
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*
@BrainlabsDigital
BrainlabsDigital / ExactMatchScriptUpdated.js
Created November 2, 2018 15:42
Create negatives where search queries are too dissimilar to the keywords they trigger. Based on containing the same words and/or edit distance.
/**
*
* Make Exact Match Exact
*
* Adds negatives for any search query that doesn't actually exactly match an exact
* match keyword.
*
* Version: 2.0
* Google AdWords Script maintained on brainlabsdigital.com
*