Campaign Naming Audit
Enforces your naming convention: campaigns missing a type token (brand/generic/shopping…), names with too few structured parts, and spacing messes — because one renegade name silently breaks every filter, rule and script.
by Dmytro Tonkikh·chiliad.io
Overview
Naming conventions are load-bearing: filters, automated rules, scripts and reports all select campaigns by name, and one renegade name breaks them all without an error message. Campaign Naming Audit checks every enabled campaign against three rules: the name must contain one of your type tokens (brand, generic, shopping...), it must have at least your minimum number of separator-delimited parts, and it must be free of leading/trailing/double spaces. Configure the tokens and separator once, then let the weekly run keep new campaigns honest.
Setup
- 1Open your Google Ads account and go to Tools → Bulk Actions → Scripts.
- 2Click the + button to create a new script and paste the code below.
- 3Set TYPE_TOKENS, SEPARATOR and MIN_PARTS to match your actual convention.
- 4Set EMAIL_ADDRESS to receive the report; leave blank for logs only.
- 5Preview once to check the rules match reality, then schedule weekly.
Configuration Variables
| Variable | Default |
|---|---|
TYPE_TOKENS | ['brand', 'generic', 'shopping', 'pmax', 'competitor', 'dsa', 'remarketing', 'video'] |
SEPARATOR | | |
MIN_PARTS | 2 |
EMAIL_ADDRESS | (empty) |
Expected Output
=== Campaign Naming Audit (24 campaigns) === --- MISSING TYPE TOKEN (1) - expected one of: brand, generic, shopping, pmax, competitor, dsa, remarketing, video --- Summer Sale 2026 --- FEWER THAN 2 PARTS split by "|" (2) --- Summer Sale 2026 Test Campaign --- SPACING ISSUES (1) --- "Search | Brand | NL" Email sent to you@example.com
Notes
The audit checks enabled campaigns only — rename before enabling and it never fires. If your convention encodes more (market, language, funnel stage), add those tokens to TYPE_TOKENS or extend the parts check; the three built-in rules catch the failures that break automation most often.