-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
John Williams edited this page Mar 13, 2026
·
1 revision
Every script in this collection is a standalone JavaScript file designed to run directly in Google Ads Scripts. No external dependencies, npm packages, or build steps required.
- Log into Google Ads
- Navigate to Tools & Settings → Bulk Actions → Scripts
- Click the + button to create a new script
- Delete any default code in the editor
- Open the
.jsfile from this repository - Copy the entire contents
- Paste into the Google Ads Scripts editor
- Give your script a descriptive name (e.g., "Anomaly Detection - Production")
Every script has a CONFIG object near the top. At minimum, you'll need to set:
const CONFIG = {
// Your email for reports/alerts
emailAddress: 'you@company.com',
// Google Sheets URL (if the script uses Sheets)
SPREADSHEET_URL: 'https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit',
// Script-specific settings...
};- Click "Authorize" when prompted
- Grant permissions for:
- Google Ads data access
- Google Sheets (if applicable)
- Gmail (for email reports)
- Click "Preview" to run in read-only mode
- Check the Logs tab for output
- Review any Sheets output
- Verify no errors in the Changes tab
- Click "Run" to execute with live changes
- Set up a Schedule (click the clock icon):
- Hourly: monitoring and alerting scripts
- Daily: reporting and management scripts
- Weekly: auditing and analysis scripts
Some scripts are designed to run from an MCC account to manage multiple child accounts:
-
mcc-label-assigner.js— runs from MCC -
account-grader.js— runs on individual accounts
For MCC scripts:
- Log into your Manager Account
- Navigate to Scripts at the MCC level
- Follow the same steps above
Most scripts can output to Google Sheets. To set up:
- Create a new Google Sheet (or use an existing one)
- Copy the Sheet URL
- Paste into the script's
SPREADSHEET_URLconfig - The script will create tabs/sheets automatically on first run
See Troubleshooting for common issues and solutions.