Agent skill

Google Ads Scripts

by cognyai in cognyai/claude-code-marketing-skills

Google Ads Scripts Reference — JavaScript automation, AdsApp object model, selectors, GAQL queries, 10+ working script patterns, MCC parallel processing, Sheets integration

No licenceAuto-check: notesMarketing & SEO

Install Google Ads Scripts

skills CLI
$ npx skills add cognyai/claude-code-marketing-skills --skill google-ads-scripts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cognyai/claude-code-marketing-skills google-ads-scripts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/google-ads-scripts .claude/skills/google-ads-scripts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
google-ads-scripts
GitHub stars
104
Token cost
~8.6k tokens
SKILL.md length
786 words
Files
1
Skills in repo
52
Repo updated
First seen
Licence
None found

At a glance

Google Ads Scripts Reference — JavaScript automation, AdsApp object model, selectors, GAQL queries, 10+ working script patterns, MCC parallel processing, Sheets integration

  • Works in 10 steps: Pause Low-Performing Keywords → Budget Pacing Monitor → Search Terms Negative Keyword Miner → …
  • Tasks that involve Paid advertising
  • SKILL.md covers Usage, Instructions, Overview and AdsApp Object Model, plus 5 more sections
  • Reaches docs.google.com

What it does

Google Ads Scripts is an agent skill from cognyai/claude-code-marketing-skills. Google Ads Scripts Reference — JavaScript automation, AdsApp object model, selectors, GAQL queries, 10+ working script patterns, MCC parallel processing, Sheets integration

Its SKILL.md is about 8.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering Paid advertising. It works with Google Ads, JavaScript and Google Sheets. The repository describes itself as: Marketing skills for Claude Code — SEO audits and implementation, ad analysis, ad optimization. Free skills need no account. $9/mo for live Search Console, Bing & LinkedIn data.

When your agent uses it

  • Tasks that involve Paid advertising

Example prompts

  • “/google-ads-scripts”

Requirements

  • Pre-approved tools (allowed-tools): WebSearch, Read, Write, Bash, mcp__cogny__google_ads__tool_execute_gaql, mcp__cogny__google_ads__tool_get_gaql_doc, mcp__cogny__google_ads__tool_get_reporting_view_doc, mcp__cogny__google_ads__tool_list_accessible_accounts

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Pause Low-Performing Keywords
  2. Budget Pacing Monitor
  3. Search Terms Negative Keyword Miner
  4. Broken URL Checker
  5. Bid Adjustments by Time of Day (Dayparting)
  6. Quality Score Tracker
  7. Ad Copy Testing (RSA Performance)
  8. Budget Allocation by ROAS
  9. Anomaly Detection
  10. Landing Page Performance

What it can do on your machine

Read from SKILL.md and the folder at commit a062fb4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • WebSearch
    • Read
    • Write
    • Bash
    • mcp__cogny__google_ads__tool_execute_gaql
    • mcp__cogny__google_ads__tool_get_gaql_doc
    • mcp__cogny__google_ads__tool_get_reporting_view_doc
    • mcp__cogny__google_ads__tool_list_accessible_accounts

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • docs.google.com

    Also links to:

    • developers.google.com
    • cogny.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Google Ads Scripts loads about 8.6k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 786 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~8.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: WebSearch, Read, Write, Bash, mcp__cogny__google_ads__tool_execute_gaql, mcp__cogny__google_ads__too

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 786 words (~8,552 tokens).

“Complete reference for Google Ads Scripts: JavaScript automation within Google Ads, AdsApp object model, selectors and iterators, GAQL queries, common script patterns with working code, Google Sheets integration, MCC parallel processing, and best practices.”

— opening of SKILL.md by cognyai
name
google-ads-scripts
allowed-tools
WebSearch, Read, Write, Bash, mcp__cogny__google_ads__tool_execute_gaql, mcp__cogny__google_ads__tool_get_gaql_doc, mcp__cogny__google_ads__tool_get_reporting_view_doc, mcp__cogny__google_ads__tool_list_accessible_accounts
version
1.0.0
author
Cogny AI
user-invocable
true
argument-hint
<script pattern or topic>

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/google-ads-scripts of cognyai/claude-code-marketing-skills.

Open the folder on GitHubat commit a062fb4

Compare with similar skills

Google Ads Scripts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Google Ads Scripts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Ads Scripts this skillcognyai/claude-code-marketing-skills104—~8.6kAutomated safety check: NotesNone
Blog GoogleAgriciDaniel/claude-blog2.3k1 repos~3.3kAutomated safety check: NotesMIT
Paid Adsfreekmurze/dotfiles1k13 repos~2.4kAutomated safety check: PassNone
Google Adszapier/connectors1761 repos~3.7kAutomated safety check: PassElastic-2.0
Money Adsiamzifei/show-me-the-money1k—~2.4kAutomated safety check: PassCustom licence
AdsCesarjoquin/Marketing-Skills1991 repos~3.5kAutomated safety check: PassMIT

Similar skills

  • Blog Google

    AgriciDaniel/claude-blog

    Google API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity…

    2.3k GitHub starsUsed in 1 repo~3.3k tokens
    Marketing & SEOAuto-check: notes
  • Paid Ads

    freekmurze/dotfiles

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    1k GitHub starsUsed in 13 repos~2.4k tokens
    Marketing & SEOAuto-check passed
  • Google Ads

    zapier/connectors

    Official

    Agent-callable Google Ads tools — search campaigns, ad groups, and ads via GAQL, build performance reports, manage campaign status and budgets, and set up conversion tracking.

    176 GitHub starsUsed in 1 repo~3.7k tokens
    Marketing & SEOAuto-check passed
  • Money Ads

    iamzifei/show-me-the-money

    Paid advertising automation for Google Ads, Meta Ads, and other ad platforms.

    1k GitHub stars~2.4k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Ads

    Cesarjoquin/Marketing-Skills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    199 GitHub starsUsed in 1 repo~3.5k tokens
    Marketing & SEOAuto-check passed
  • Google Ads

    superdesigndev/treg

    Traps when running Google Ads through treg — the API requirements and cleanup semantics that cost round-trips or money.

    4.5k GitHub stars~1.9k tokensUpdated today
    Marketing & SEOAuto-check passed

More from cognyai/claude-code-marketing-skills

All 52 skills in this repo
  • Gtm Audit

    cognyai/claude-code-marketing-skills

    Google Tag Manager container audit — tag health, orphaned and paused tags, duplicate GA4 config, trigger coverage, Consent Mode, naming, workspace hygiene

    104 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Gtm Setup

    cognyai/claude-code-marketing-skills

    GTM Event Tracking & Setup Reference — dataLayer fundamentals, trigger types, variable types, GA4 tag configuration, debug mode, and best practices

    104 GitHub stars~4.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • Gtm Tracking Plan

    cognyai/claude-code-marketing-skills

    Turn a measurement plan into a Google Tag Manager spec — tags, triggers, variables, and copy-paste dataLayer snippets for every event

    104 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Pre Send QA

    cognyai/claude-code-marketing-skills

    Pre-flight QA for an email campaign — merge tags, broken links, spam triggers, compliance, mobile rendering — before you hit send

    104 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check: notes
  • Brand Kit

    cognyai/claude-code-marketing-skills

    Build a portable brand-kit.json for the user's product — colors, typography, voice — that other skills (video, ad creative, landing page) can consume.

    104 GitHub stars~3.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Linkedin Launch Video

    cognyai/claude-code-marketing-skills

    Produce a LinkedIn-native 1:1 (or 16:9) launch video using HyperFrames.

    104 GitHub stars~2.7k tokensUpdated 3 mo ago
    Auto-check: notes

Categories

Questions about Google Ads Scripts

What does Google Ads Scripts do?

Google Ads Scripts Reference — JavaScript automation, AdsApp object model, selectors, GAQL queries, 10+ working script patterns, MCC parallel processing, Sheets integration. Google Ads Scripts is an agent skill from cognyai/claude-code-marketing-skills.

When should I use Google Ads Scripts?

Google Ads Scripts fits situations like: tasks that involve Paid advertising.

How do I install Google Ads Scripts in Claude Code?

Run `npx skills add cognyai/claude-code-marketing-skills --skill google-ads-scripts -a claude-code`. Or copy the skill folder (skills/google-ads-scripts in cognyai/claude-code-marketing-skills) into .claude/skills/google-ads-scripts in your project. Claude Code loads it when a task matches its description.

How do I install Google Ads Scripts in Codex?

Run `npx skills add cognyai/claude-code-marketing-skills --skill google-ads-scripts -a codex`. Or copy the skill folder (skills/google-ads-scripts in cognyai/claude-code-marketing-skills) into .agents/skills/google-ads-scripts in your project. Codex loads it when a task matches its description.

Can I use Google Ads Scripts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cognyai/claude-code-marketing-skills --skill google-ads-scripts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-ads-scripts, .gemini/skills/google-ads-scripts, .github/skills/google-ads-scripts and .opencode/skills/google-ads-scripts in your project.

What does Google Ads Scripts need to run?

SKILL.md names no scripts, command-line tools or credentials: Google Ads Scripts is instructions for the agent only. Its frontmatter pre-approves these tools: WebSearch, Read, Write, Bash, mcp__cogny__google_ads__tool_execute_gaql, mcp__cogny__google_ads__tool_get_gaql_doc, mcp__cogny__google_ads__tool_get_reporting_view_doc, mcp__cogny__google_ads__tool_list_accessible_accounts.

Does Google Ads Scripts access the network?

SKILL.md names 3 domains. In commands or code: docs.google.com; the agent is likely to contact it when it follows the instructions. As links in the text: developers.google.com and cogny.com. This is read from the text; nothing was executed.

Is Google Ads Scripts safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Google Ads Scripts use?

No licence was found for Google Ads Scripts or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Google Ads Scripts use?

About 8.6k tokens (SKILL.md is roughly 34k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Google Ads Scripts?

Skills that share tags, products or a category with Google Ads Scripts: Blog Google (AgriciDaniel/claude-blog, 2.3k stars), Paid Ads (freekmurze/dotfiles, 1k stars), Google Ads (zapier/connectors, 176 stars) and Money Ads (iamzifei/show-me-the-money, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Ads Scripts?

cognyai (a GitHub organization) maintains it in cognyai/claude-code-marketing-skills, which has 104 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on June 16, 2026.

Source: cognyai/claude-code-marketing-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.