google-ads-scripts-library

google-ads-scripts-library is a skill for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 111 tokens per session (5,375 once invoked), scanned A, original, MIT.

A library of Google Ads Scripts: small programs that run inside Google Ads on a schedule. It includes scripts for alerts, bid and budget actions, anomaly checks, keyword analysis, URL checks, and spreadsheet exports.

In plain words
What is it for?
Use it to create budget-pacing alerts, detect unusual performance, pause or adjust campaigns where appropriate, analyse search terms, check broken URLs, and export data to spreadsheets.
Why use it?
It removes repetitive account monitoring and lets routine checks or actions happen without manual work. It also distinguishes scheduled scripts from tools used for one-off analysis.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ad-superpowers plugin — 124 skills, 35 commands, 5 agents, 1 MCP server shipped together

Good fit Use it to create budget-pacing alerts, detect unusual performance, pause or adjust campaigns where appropriate, analyse search terms, check broken URLs, and export data to spreadsheets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ad-Superpowers/ad-superpowers-plugin --skill google-ads-scripts-library
Clone the repo
git clone --depth 1 https://github.com/Ad-Superpowers/ad-superpowers-plugin

Made for: Claude Code.

Or install ad-superpowers, the plugin that ships this one along with the rest of its 124 skills, 35 commands, 5 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-ads-scripts-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library/github.svg)](https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library)
Your own site
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-ads-scripts-library

Your own site · 80×15
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-scripts-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.05375
Opus 5.5 $0.00044 $0.02150
Sonnet 5.5 $0.00022 $0.01075
Haiku 4.5 $0.00011 $0.00537

Measured 13d ago against content hash 1f1a456ee622, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-ads-scripts-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/google-ads-scripts-library/SKILL.md · 681 lines

How it starts

The opening of the file, as written. The whole thing — 681 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Complete library with 15 production-ready Google Ads Scripts for automation, monitoring, and optimization.

2026 Context: Scripts vs. MCP Tools

Google Ads Scripts run inside the Google Ads UI and use the legacy AdsApp object. They are useful for scheduled, account-level automation that runs without human intervention. For ad-hoc analysis and conversational workflows, use the Ad Superpowers MCP tools instead:

# Pull anomaly data via MCP (no script required):
google_ads_run_gaql(query="
  SELECT campaign.name, metrics.cost_micros,
         metrics.conversions, metrics.cost_per_conversion
  FROM campaign
  WHERE segments.date DURING YESTERDAY
    AND campaign.status = 'ENABLED'
  ORDER BY metrics.cost_micros DESC
  LIMIT 20
")

# Scripts are best for: unattended scheduled alerts,
# automated pausing/bidding, and spreadsheet exports.
# MCP is best for: analysis, diagnosis, recommendations.

Smart Bidding note (2026): Scripts that manually adjust bids (e.g., device/dayparting modifiers) can conflict with Smart Bidding signals. Only apply manual bid adjustments to campaigns using Manual CPC or non-Smart strategies. For Smart Bidding campaigns, use budget and target adjustments instead.

AI Max (2026): Search campaigns with AI Max subtype use fully automated query matching — search term scripts still work but you cannot add exact/phrase negatives via script directly. Use campaign-level negative keyword lists.

Scripts Overview

TOP 15 GOOGLE ADS SCRIPTS
═════════════════════════

MONITORING & ALERTS:
├── 1. Performance Anomaly Detector
├── 2. Budget Pacing Monitor
├── 3. Broken URL Checker
├── 4. Quality Score Tracker
└── 5. Zero Impressions Alert

OPTIMIZATION:
├── 6. N-Gram Analysis
├── 7. Search Query Mining
├── 8. Negative Keyword Builder
├── 9. Bid Adjustment by Hour/Day
└── 10. Low Performer Pauser

REPORTING:
├── 11. Daily/Weekly Report Generator
├── 12. Competitive Position (impression share)
├── 13. Campaign Performance Tracker
├── 14. Ad Extension Monitor
└── 15. Account Health Dashboard

SETUP INSTRUCTIONS (for all scripts):
─────────────────────────────────────
1. Google Ads → Tools & Settings → Bulk Actions → Scripts
2. + New Script
3. Paste code
4. Authorize (first run)
5. Preview → Run (test)
6. Schedule (daily/hourly)

Read the full file on GitHub · 681 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed 1f1a456ee622
  2. 14d ago Changed · +10 tokens per session 4cf9fa17f6ff
  3. 2mo ago First seen · 681 lines · 101 tokens per session scan A bedd385a3da6

Subscribe to this mod's changes

google-ads-scripts-library is a skill published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (6 stars, last pushed 14d ago), licensed MIT. It adds 111 tokens to every session and 5,375 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

google-ads-scripts-library compared with skills from other repositories

google-ads-scripts-library next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-ads-scripts-libraryAd-Superpowers/ad-superpowers-pluginSkill614d agoMITA111Claude Code
analyticsLuuOW/meridian-mcpSkill01mo agoMITA33Claude Code, Codex
bot-traffic-detectionsurendranb/google-analytics-mcpSkill2424d agoMITA36Claude Code
creative-generatelogly/mureoSkill64yesterdayApache-2.0A131Claude Code
learnlogly/mureoSkill64yesterdayApache-2.0A98Claude Code
reddit-adsadkit/ads-skillsSkill443d agoMITA84Claude Code, Codex
tiktok-adsadkit/ads-skillsSkill443d agoMITA85Claude Code, Codex