Selects, implements, and manages Google Ads scripts to automate PPC tasks like n-gram analysis, bid management, budget pacing, anomaly detection, and performance reporting.
Ships in metaflow-marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
references/scripts-catalog.md for detailed optionsRead references/scripts-catalog.md for the complete catalog of 50+ top scripts with sources, use cases, and implementation notes.
What problem are you solving?
| Problem | Category | Example Scripts |
|---|---|---|
| Finding wasted spend on bad search terms | N-gram / Search term mining | Brainlabs Search Query Mining, PEMAVOR Search Term Miner |
| Bid changes based on rules | Bid management | Day-of-week bid modifiers, weather-based bidders |
| Budget overspend/underspend | Budget pacing | Optmyzr-style pacing scripts, redistribution scripts |
| Catching broken URLs or disapprovals | Monitoring / Anomaly detection | Link checker, Vallaeys anomaly detector |
| Automated reporting | Reporting | Monthly deck generators, heat map scripts |
| Profit-based product bidding | Ecommerce | Jack Felsted's revenue maximizer |
| Finding best-performing ad copy language | Ad copy analysis | Vallaeys RSA n-gram analyzer |
| Tracking competitor movement | Competitive monitoring | Auction insights trend scripts |
Purpose: Mine search query reports to find negative keyword candidates and promotion opportunities at scale.
Top pick: Brainlabs Search Query Mining Script (updated for GAQL by Nils Rooijmans, March 2025)
What it does:
checkNegatives parameter: verifies new negatives don't block existing keywordsWhen to run: Weekly for new campaigns, bi-weekly for stable ones.
Output: Google Sheet with n-gram breakdown, sorted by spend and CPA.
Purpose: Adjust bids automatically based on performance patterns or external signals.
Common scripts:
Warning: These scripts predate Smart Bidding. For accounts running tCPA/tROAS, most bid scripts are unnecessary — Smart Bidding handles these optimizations automatically. Use bid scripts mainly for:
Purpose: Prevent overspend/underspend. Automatically shift budget between campaigns.
Common scripts:
ECPC deprecation note (March 2025): Some older budget scripts reference ECPC. If you encounter one, update or replace — ECPC is gone.
Purpose: Catch problems before they waste money.
Top scripts:
When to run: Daily for anomaly detection, weekly for URL checks and QS tracking.
Purpose: Generate client-ready reports without manual grind.
Common scripts:
Purpose: Profit-based optimization beyond ROAS.
Top pick: Jack Felsted's Revenue Maximizer Tiering
What it does:
Requires: Merchant Center feed with custom labels (use the google-merchant-center skill to set these up).
Purpose: Find winning language patterns in ads.
Top pick: Frederick Vallaeys' RSA n-gram analyzer
What it does: Analyzes which words/phrases in your ad copy correlate with higher CTR and conversion rates. Applies n-gram analysis methodology to ad copy instead of search terms.
Purpose: Track competitor movement in auctions.
Common scripts:
Every Google Ads script follows this installation pattern:
| Step | Action |
|---|---|
| 1 | In Google Ads, navigate to Tools → Bulk Actions → Scripts |
| 2 | Click "+" to create a new script |
| 3 | Paste the script code |
| 4 | Update configuration variables (email, spreadsheet URL, thresholds) |
| 5 | Click "Authorize" (script needs account access) |
| 6 | Click "Preview" to test without making changes |
| 7 | Review preview logs for errors |
| 8 | Click "Run" for one-time execution |
| 9 | Click "Schedule" for recurring runs |
Always preview before running. Scripts that make changes (pause keywords, adjust bids, change budgets) can cause damage if misconfigured.
Before installing a script, answer these questions:
| Question | Why |
|---|---|
| What's the business problem this solves? | Avoid installing scripts for theoretical value |
| Is there a manual check-in step or fully automated? | Start with notification-only, graduate to auto-action |
| What's the fallback if the script fails? | Scripts can break (API changes, errors) |
| Who maintains it? | Open-source scripts may have stale code |
| Does Smart Bidding already handle this? | Don't reinvent what the platform does natively |
| What's the preview showing? | Always review before authorizing destructive actions |
| Script Type | Recommended Frequency |
|---|---|
| Anomaly detection | Daily (early morning) |
| Budget pacing | Daily or 2x daily (morning + midday) |
| Search term mining | Weekly (new campaigns), bi-weekly (stable) |
| Ad copy analysis | Monthly |
| Quality Score tracking | Weekly |
| Ecommerce product tiering | Weekly or bi-weekly |
| Broken URL checker | Weekly |
| Reporting automation | Monthly (for reports) |
| Competitive monitoring | Weekly |
| Emergency stop | Continuous (integrated with uptime monitor) |
Don't over-schedule. More frequent ≠ better. Some scripts have API rate limits or cost real time/money to run.
| Source | Specialty | Access |
|---|---|---|
| Nils Rooijmans | GAQL-updated scripts, search term mining, bid management | nilsrooijmans.com — maintained and current |
| Frederick Vallaeys | Anomaly detection, ad copy analysis, account management | optmyzr.com, searchengineland.com contributions |
| Brainlabs | Search query mining, budget tools (Nils maintains updates) | brainlabsdigital.com/scripts |
| Jack Felsted | Ecommerce revenue maximizer, gross profit scripts | jackfelsted.com |
| Daniel Gilbert (Brainlabs) | Hourly heat maps, competitive monitoring | brainlabsdigital.com |
| Optmyzr | Monthly presentation decks, pacing scripts | optmyzr.com (paid platform) |
| Sarah Stemen | Practitioner scripts, account auditing | sarahstemen.com |
| Google Developers | Official script samples and documentation | developers.google.com/google-ads/scripts |
When recommending scripts, produce this deliverable:
## Google Ads Script Recommendations
### Business Problem
[What the user is trying to solve or automate]
### Recommended Scripts
#### Script 1: [Name]
- **Source:** [Author/organization]
- **Purpose:** [What it does]
- **Why this script:** [How it solves the user's specific problem]
- **Prerequisites:** [API access, spreadsheets, email setup]
- **Configuration variables:** [Key settings to customize]
- **Schedule:** [Recommended frequency]
- **Expected outcome:** [What you'll see after it runs]
#### Script 2: [Name]
[Same structure]
### Installation Order
1. [First script to install and why]
2. [Second script]
### Monitoring Plan
- Check logs after [time period]
- Success criteria: [what good looks like]
- Warning signs: [what to watch for]
### Smart Bidding Compatibility
[Note which scripts are redundant if using Smart Bidding, and which remain useful]
Input: "I manage 8 Google Ads accounts for ecommerce clients. Spending $4K-$30K/month each. Most are on PMax + Search with Smart Bidding. I'm spending hours every week manually checking search terms, monitoring for anomalies, and building reports. What scripts should I set up?"
Output:
Agency workload from manual search term review, anomaly monitoring, and reporting across 8 accounts. Time savings from automation compounds across multiple accounts.
checkNegatives parameter (set to true to verify no conflicts with existing keywords)references/scripts-catalog.md for the full categorized catalog.What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/ad-spend-allocatorOptimize budget allocation across paid media channels using Marketing Efficiency Ratio (MER), marginal ROAS analysis, diminishing returns modeling, and incrementality-informed decisions./ai-search-visibility-aeo-geo-llmoAI search and citation behavior change quickly. The frameworks below use the best available public data as of early 2026 (Google surfaces, ChatGPT, Perplexity, Gemini, and large-sample studies). Re-check assumptions as platforms update./bofu-seo-aeo-strategyPlan, write, and maintain content that wins purchase-near buyers in both organic search and AI answer engines. BOFU content is structurally different from TOFU — the reader has accepted they need to decide; the page's job is to resolve the decision. Get it right and a single deep page can outperform dozens of informational posts on revenue contribution./campaign-analyzerAnalyze paid media performance across dimensions, funnels, cohorts, and channels — turning data into actionable insights and business narratives./google-ads-account-auditSystematic 70+ checkpoint audit covering tracking, structure, keywords, ads, bidding, budgets, audiences, and competitive positioning — with ICE-prioritized recommendations./google-ads-campaign-builderBuild and configure Google Ads campaigns across all 10+ campaign types — from campaign type selection through settings, targeting, creatives, and launch./metaflow-marketing-skills:google-ads-scriptsfrom metaflow-marketing-skills
npx claudepluginhub narayan-metaflow/metaflow-marketing-skills --plugin metaflow-marketing-skillsOther plugins' skills for the same job