Skip to content
Agentmart
Submit a tool

gmp-ads

Google Ads: Campaigns, ad groups, keywords, search terms, and raw GAQL queries.

Skill by lucianfialho

IndexedApache-2.0★ 33
Write a review

Chalk Labs

Need help deploying gmp-ads?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lucianfialho-gmp-ads

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Google Ads: Campaigns, ad groups, keywords, search terms, and raw GAQL queries.

Use cases: marketing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/gmp-ads

What's inside

Skill name
gmp-ads
Description
Google Ads: Campaigns, ad groups, keywords, search terms, and raw GAQL queries.
License
Apache-2.0
Instructions
89 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# ads (Google Ads REST API)

> **PREREQUISITE:** Read `../gmp-shared/SKILL.md` for auth, global flags, and output formats.
>
> **EXTRA AUTH:** Google Ads requires a developer token. Set it with:
> ```bash
> gmp auth set-developer-token YOUR_TOKEN
> ```
> If using a Manager Account (MCC), also set:
> ```bash
> gmp auth set-login-customer-id 1234567890
> ```

```bash
gmp ads <command> [flags]
```

## Commands

| Command | Description |
|---------|-------------|
| `accounts` | List accessible customer accounts |
| [`campaigns`](../gmp-ads-campaigns/SKILL.md) | Campaign performance report |
| `adgroups` | Ad group performance report |
| `keywords` | Keyword performance report |
| `search-terms` | Search terms report (actual queries that triggered ads) |
| `query` | Run a raw GAQL query |

## Quick Reference

### List accounts

```bash
# Simple list (no MCC needed)
gmp ads accounts

# Detailed list via MCC
gmp ads accounts -c 1234567890 -f table
```

### Ad group performance

```bash
gmp ads adgroups -c 1234567890 -f table
gmp ads adgroups -c 1234567890 --campaign "Brand" -f table
```

### Keyword performance

```bash
gmp ads keywords -c 1234567890 -f table
gmp ads keywords -c 1234567890 --campaign "Brand" -l 20 -f table
```

### Search terms

```bash
gmp ads search-terms -c 1234567890 -f table
gmp ads search-terms -c 1234567890 --campaign "Brand" -f table
```

### Raw GAQL query

```bash
gmp ads query -c 1234567890 -q "SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS"
```

## Sorting (`--sort`, `--order`)

`campaigns`, `adgroups`, `keywords`, and `search-terms` each take `--sort <field> --order <asc|desc>` (default `desc`), rewriting the report's `ORDER BY` clause. Each command only accepts the field names it actually outputs:

| Command | Valid `--sort` fields | Default order |
|---------|------------------------|---------------|
| `campaigns` | `impressions`, `clicks`, `cost`, `conversions`, `convValue`, `ctr`, `avgCpc` | `cost DESC` |
| `adgroups` | `impressions`, `clicks`, `cost`, `conversions`, `ctr` | `cost DESC` |
| `keywords` | `impressions`, `clicks`, `cost`, `conversions`, `ctr`, `avgCpc`, `qualityScore` | `impressions DESC` |
| `search-terms` | `impressions`, `clicks`, `cost`, `conversions`, `ctr` | `impressions DESC` |

```bash
gmp ads campaigns -c 1234567890 --sort cost --order desc -f table       # biggest spenders first
gmp ads keywords -c 1234567890 --sort qualityScore --order asc -f table # worst quality score first
```

An unknown `--sort` value errors with the exact list of fields that command accepts.

## Date Range Values

Google Ads uses predefined date range constants:

| Value | Description |
|-------|-------------|
| `LAST_7_DAYS` | Last 7 days |
| `LAST_30_DAYS` | Last 30 days (default) |
| `THIS_MONTH` | Current month |
| `LAST_MONTH` | Previous month |
| `LAST_14_DAYS` | Last 14 days |
| `LAST_BUSINESS_WEEK` | Last business week |

## Tips

- Customer IDs can include dashes (`123-456-7890`) or not (`1234567890`) -- both work.
- Costs are returned in micros and automatically converted (divided by 1,000,000).
- CTR and rates are automatically formatted as percentages.
- Use `gmp ads query` for any GAQL query not covered by built-in commands.
- GAQL reference: the query language supports SELECT, FROM, WHERE, ORDER BY, LIMIT.

From lucianfialho/gmp-cli, Apache-2.0.

More from lucianfialho/gmp-cli

Signals

Stars
33
Forks
3
Open issues
5
Last commit (this folder)
Mar 12, 2026 (7 months ago)
Last release
Apr 27, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lucianfialho

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get gmp-ads running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying gmp-ads?

CallGet help
Cite this page

gmp-ads skill. Agent Mart. https://agentmart.dev/skills/lucianfialho-gmp-ads (last updated 2026-10-24)