Skip to content

Instantly share code, notes, and snippets.

@BrainlabsDigital
BrainlabsDigital / Ad Rotate Analysis.js
Last active January 5, 2018 16:11
Script to find the best ad in each ad group, and find what performance you could have got if the losing ads' impressions had gone to the winner instead.
/**
*
* 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.
*
* Version: 1.1
* Updated 2016-10-11: removed 'ConvertedClicks'
@BrainlabsDigital
BrainlabsDigital / Duplicate Query Checker.js
Created December 19, 2016 18:36
Creates a report detailing which search queries are triggering multiple ad groups.
/**
*
* Duplicate Query Checker
*
* Creates a report detailing which searches are triggering multiple ad groups.
*
* 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 / 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 / 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 / Ad-jective Analysis Tool.js
Created July 31, 2017 18:29
Mines the search query report to find the performance of a list of user-defined phrases.
/**
*
* Ad-jective Analysis Tool
*
* This script calculates the performance of user-defined phrases in the search
* query report, and outputs a report into a Google Doc spreadsheet.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*
@BrainlabsDigital
BrainlabsDigital / Check If You've Screwed Up Your AdWords Account v2.js
Last active May 3, 2019 01:22
Script to check keyword, ad and extension text for basic errors or out-of-date messaging.
/**
*
* AdWords Script for keyword and ad checking.
* Checks keyword text for punctuation suggesting the wrong match type, checks
* broad match keywords for missing BMM. Checks ad, sitelink and callout text
* for text that suggests ads are out-of-date (like previous years and seasonal
* events) and for common English spelling mistakes.
*
* Version: 2.1
* Updated 2017-01-05: changed 'CreativeApprovalStatus' to 'CombinedApprovalStatus'
@BrainlabsDigital
BrainlabsDigital / Copy Labels Between Levels.js
Created May 8, 2017 10:43
Copies labels from one sort of entity to another, eg from campaign to ads within that campaign, or from keywords to the ad groups that contain them.
/**
*
* Copying Labels Between Levels
*
* This script applies labels from campaigns or ad groups to entities contained
* within them, or takes labels applied to keywords, ads or ad groups and applies
* them to the campaigns or ad groups that contain them.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
@BrainlabsDigital
BrainlabsDigital / Make Exact Match Exact.js
Created March 20, 2017 14:47
Adds negatives for any search query that doesn't actually *exactly* match an exact match keyword.
/**
*
* 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
*
@BrainlabsDigital
BrainlabsDigital / Empty Ad Group Filler.js
Last active May 3, 2019 01:23
Script to find ad groups with no active ads and create an ad to go in them.
/**
*
* Empty Ad Group Filler
*
* Checks for ad groups with no approved and active ads (or no approved and active
* ETAs) and creates a template ad in them.
*
* Version: 1.1
* Updated 2017-01-05: changed 'CreativeApprovalStatus' to 'CombinedApprovalStatus'
* Google AdWords Script maintained on brainlabsdigital.com