Skip to content

Instantly share code, notes, and snippets.

@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 / Campaign Audience Copying.js
Last active March 5, 2020 17:02
Script to find the campaign-level audiences used by a chosen template campaign, and apply them to all other campaigns.
/**
*
* Campaign Audience Copying
*
* This script takes the audiences (and audience bid adjustments) applied to one
* template campaign and applies them to all other campaigns that match the
* filters. Campaigns are then labelled.
*
* Version: 1.0
@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 / 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
@BrainlabsDigital
BrainlabsDigital / Heat Map Creation Tool - with Devices.js
Created October 25, 2016 09:49
Script to create smoothed heat maps from your AdWords data, optionally segmented by device.
/**
*
* Heat Map Creation Tool - with Devices
*
* This script calculates the smoothed average performance of each hour of each day
* of the week, and outputs this into a heat map and graph in a Google Sheet. This
* can be done for all data and for device data. It also suggests ad schedules and
* device bid adjustments based on conversion rates.
*
* Version: 2.0
@BrainlabsDigital
BrainlabsDigital / Dynamic Ad Extensions.js
Created September 27, 2016 10:40
AdWords Script to create, update and apply sitelinks and callout extensions based on definitions and variables in a Google Sheet.
/**
*
* Dynamic Ad Extensions
*
* Script to dynamically add and/or update sitelinks and callouts and apply them to
* all campaigns or ad groups, based on definitions and variables in a Google Sheet.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
*
@BrainlabsDigital
BrainlabsDigital / Extension and List Copying.js
Created September 5, 2016 09:02
Script to find the campaign extensions and shared lists used by a chosen template campaign, and apply them to all other campaigns.
/**
*
* Extension and List Copying
*
* This script takes the ad extensions, shared campaign negative lists and excluded
* placement lists applied to one template campaign and applies them to all other
* campaigns that match the filters. Campaigns are then labelled.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
@BrainlabsDigital
BrainlabsDigital / Shared Negative List Copying.js
Created August 3, 2016 09:43
Script to find the shared campaign negative lists and excluded placements lists used by a chosen template campaign, and apply them to all other campaigns.
/**
*
* Shared Negative List Copying
*
* This script takes the shared campaign negative lists and excluded placement lists
* applied to one template campaign and applies them to all other campaigns that
* match the filters.
*
* Version: 1.0
* Google AdWords Script maintained on brainlabsdigital.com
@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'