secondstep-claude-skills / google-ads-scripts-claude
CLAUDE.md2 starsChanged 9 months agoMITView on GitHub
A Claude Code skill that generates, debugs, and optimizes Google Ads Scripts — JavaScript automations running directly inside Google Ads accounts. 50+ ready-to-use scripts across 10 categories: budget alerts, bid rules, reporting, link checking, Quality Score, search terms, anomaly detection, labeling, script generation, and script auditing.
In this repository47 other files it gives its agents.
- skills/ab-testing-claude/CLAUDE.mdCLAUDE.md
- skills/aeo-claude/CLAUDE.mdCLAUDE.md
- skills/competitor-analysis-claude/CLAUDE.mdCLAUDE.md
- skills/competitor-analysis-claude/competitor/CLAUDE.mdCLAUDE.md
- skills/conversion-tracking-claude/CLAUDE.mdCLAUDE.md
- skills/copywriting-frameworks-claude/CLAUDE.mdCLAUDE.md
- skills/email-marketing-claude/CLAUDE.mdCLAUDE.md
- skills/ga4-audit-claude/CLAUDE.mdCLAUDE.md
- skills/google-ads-audit-claude/CLAUDE.mdCLAUDE.md
- skills/google-ads-copy-claude/CLAUDE.mdCLAUDE.md
- skills/landing-page-audit-claude/CLAUDE.mdCLAUDE.md
- skills/linkedin-ads-claude/CLAUDE.mdCLAUDE.md
- skills/local-seo-claude/CLAUDE.mdCLAUDE.md
- skills/meta-ads-audit-claude/CLAUDE.mdCLAUDE.md
- skills/negative-keywords-claude/CLAUDE.mdCLAUDE.md
- skills/pmax-claude/CLAUDE.mdCLAUDE.md
- skills/product-feed-claude/CLAUDE.mdCLAUDE.md
- skills/quality-score-claude/CLAUDE.mdCLAUDE.md
- skills/saas-metrics-claude/CLAUDE.mdCLAUDE.md
- skills/schema-markup-claude/CLAUDE.mdCLAUDE.md
- skills/smart-bidding-claude/CLAUDE.mdCLAUDE.md
- skills/tiktok-ads-claude/CLAUDE.mdCLAUDE.md
- skills/youtube-ads-claude/CLAUDE.mdCLAUDE.md
- abtestSkill
- aeoSkill
- competitor-analysisSkill
- conversion-tracking-claudeSkill
- copySkill
- copywriting-frameworks-claudeSkill
- emailSkill
- ga4-audit-claudeSkill
- ads-auditSkill
- google-ads-copy-claudeSkill
- google-ads-scripts-claudeSkill
- lp-auditSkill
- linkedin-ads-claudeSkill
- localSkill
- meta-auditSkill
- negativesSkill
- pmaxSkill
- product-feed-claudeSkill
- quality-score-claudeSkill
- saasSkill
- schema-markup-claudeSkill
- biddingSkill
- tiktokSkill
- youtube-ads-claudeSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 77
Always generate complete, runnable JavaScript — never pseudocode
- Distinctive: line 79
Add try/catch error handling to every script
- Distinctive: line 81
Use GAQL (Google Ads Query Language) for reports — never deprecated AWQL
- Very specific: line 82
Every script must have a function main() {} entry point
- Very specific: line 85
Default date ranges to LAST_30_DAYS unless user specifies otherwise
- Very specific: line 89
Use var for broadest compatibility (some environments are ES5 only)
- Distinctive: line 90
Use descriptive variable names
- Distinctive: line 92
Use helper functions for reusable logic
- Very specific: line 96
When a user runs a /script command, load the corresponding sub-skill from skills/script-*/SKILL.md for detailed context and templates.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Configuration — Google Ads Scripts
Project Overview
A Claude Code skill that generates, debugs, and optimizes Google Ads Scripts — JavaScript automations running directly inside Google Ads accounts. 50+ ready-to-use scripts across 10 categories: budget alerts, bid rules, reporting, link checking, Quality Score, search terms, anomaly detection, labeling, script generation, and script auditing.
Architecture
google-ads-scripts-claude/
├── SKILL.md # Master skill reference (loaded by Claude Code)
├── CLAUDE.md # This file — project config & dev rules
├── .claudeignore # Files excluded from Claude context
├── scripts-skill/
│ └── SKILL.md # Script skill entry point
├── skills/ # Sub-skills (one per script category)
│ ├── script-budget-alerts/ # /script budget
│ ├── script-bid-management/ # /script bids
│ ├── script-reporting/ # /script report
│ ├── script-link-checker/ # /script links
│ ├── script-quality-score/ # /script qs
│ ├── script-search-terms/ # /script search-terms
│ ├── script-anomaly-detection/ # /script anomaly
│ ├── script-labeling/ # /script labels
│ ├── script-generator/ # /script generate
│ └── script-report/ # /script audit
├── agents/ # Claude Code agents
│ ├── script-builder.md # Generates scripts from descriptions
│ ├── script-debugger.md # Diagnoses and fixes script errors
│ └── script-optimizer.md # Improves script performance
├── scripts/ # Python utilities
│ ├── validate-script.py # Syntax validation for generated scripts
│ └── template-renderer.py # Renders templates with user config
├── templates/ # JavaScript script templates
│ ├── budget-pacing.js
│ ├── bid-adjustments.js
│ ├── daily-report.js
│ ├── link-checker.js
│ ├── qs-tracker.js
│ ├── search-term-miner.js
│ ├── anomaly-alert.js
│ └── auto-labeler.js
├── docs/ # Reference documentation
│ ├── google-ads-scripts-api.md
│ ├── execution-limits.md
│ ├── troubleshooting.md
│ └── best-practices.md
└── assets/
└── .gitkeepCommands
| Command | Description |
/script generate | Generate a custom script from plain English description |
/script budget | Budget pacing and alert scripts |
/script bids | Bid adjustment and optimization scripts |
/script report | Automated reporting scripts |
/script links | URL validation and broken link detection scripts |
/script qs | Quality Score tracking scripts |
/script search-terms | Search term mining and negative keyword scripts |
/script anomaly | Performance anomaly detection scripts |
/script labels | Auto-labeling scripts |
/script audit | Script inventory and health check |
Dev Commands
python scripts/validate-script.py templates/budget-pacing.js # Validate a template
python scripts/template-renderer.py templates/daily-report.js # Render with defaultsDev Rules
Script Generation
- Always generate complete, runnable JavaScript — never pseudocode
- Include a
CONFIGobject at the top of every script for easy customization - Add try/catch error handling to every script
- Include
Logger.log()statements for debugging - Use GAQL (Google Ads Query Language) for reports — never deprecated AWQL
- Every script must have a
function main() {}entry point - Respect execution limits: 30 min runtime, 250K API calls, 50 URL fetches
- For MCC accounts, use
MccApp.accounts()pattern - Default date ranges to
LAST_30_DAYSunless user specifies otherwise - Cost values from API are in micros — always divide by 1,000,000
Code Style
- Use
varfor broadest compatibility (some environments are ES5 only) - Use descriptive variable names
- Group configuration constants at the top
- Use helper functions for reusable logic
- Format email HTML with inline styles (no external CSS in Google Ads email)
Sub-Skill Loading
When a user runs a /script command, load the corresponding sub-skill from skills/script-*/SKILL.md for detailed context and templates.
File Conventions
- JavaScript templates: kebab-case
.jsfiles intemplates/ - Skill definitions:
SKILL.mdinside eachskills/script-*/directory - Agent definitions: kebab-case
.mdfiles inagents/ - Python utilities: kebab-case
.pyfiles inscripts/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

