google-ads-gaql-query-guide

google-ads-gaql-query-guide is a skill for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 116 tokens per session (3,543 once invoked), scanned A, original, MIT.

A reference for Google Ads Query Language, the query syntax used to retrieve campaign data from the Google Ads API. It shows how to select fields, metrics, dates, filters, sorting, and limits.

In plain words
What is it for?
Use it to build queries for campaigns, keywords, search terms, video metrics, and other Google Ads data.
Why use it?
It helps developers write valid reports and adapt queries when Google changes field names or API versions. This avoids guessing resource and metric names.

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 build queries for campaigns, keywords, search terms, video metrics, and other Google Ads data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide
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-gaql-query-guide
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-gaql-query-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide/github.svg)](https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide)
Your own site
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide/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-gaql-query-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/google-ads-gaql-query-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,543 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.00116 $0.03543
Opus 5.5 $0.00046 $0.01417
Sonnet 5.5 $0.00023 $0.00709
Haiku 4.5 $0.00012 $0.00354

Measured 13d ago against content hash 0c703ef31853, 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-gaql-query-guide 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-gaql-query-guide/SKILL.md · 503 lines

How it starts

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

GAQL Query Guide

Complete reference for Google Ads Query Language. Field names verified against the live googleAdsFields catalog for v25 (2026-08-14). The version this server talks to is set by GOOGLE_ADS_API_VERSION, so this guide names versions only where a field actually changed.

Quick Reference

BASIC QUERY STRUCTURE
═════════════════════

SELECT field1, field2, metrics.clicks, metrics.impressions
FROM resource_type
WHERE condition1 AND condition2
ORDER BY field [ASC|DESC]
LIMIT n

API v22/v23 Breaking Changes

Video Metrics Renamed (v22)

v21 → v22 METRIC RENAMES (BREAKING CHANGE IN v22)
══════════════════════════════════════════════════

OLD (pre-v22)                →  NEW (v22+)
─────────────────────────────────────────────────────────
metrics.video_views          →  metrics.video_trueview_views
metrics.video_view_rate      →  metrics.video_trueview_view_rate
metrics.average_cpv          →  metrics.trueview_average_cpv

NEW VIDEO METRICS ADDED IN v22:
────────────────────────────────
• metrics.video_trueview_view_rate_in_feed
• metrics.video_trueview_view_rate_in_stream
• metrics.video_trueview_view_rate_shorts

Our system auto-migrates old metric names to the current v22+ names.

Asset Performance Labels Removed for PMax (v22)

REMOVED IN v22 (Performance Max only)
══════════════════════════════════════

Asset performance labels (Best/Good/Low/Pending) are NO LONGER
available for Performance Max campaigns as of v22.

The following GAQL fields are unavailable for PMax campaigns:
• asset_group_asset.performance_label
• metrics.sample_best_performance_entities (and related)
• metrics.asset_best_performance_impression_percentage (and related)

⚠️ asset_group_asset.performance_label still works for Display (RDA) ads.
   Only PMax asset groups lost performance labels.

New v22 Feature: ad_network_type Breakdown

-- PMax performance broken down by network type (v22+)
SELECT
  campaign.name,
  segments.ad_network_type,
  metrics.impressions,
  metrics.clicks,
  metrics.cost_micros,
  metrics.conversions,
  metrics.conversions_value
FROM campaign
WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'
  AND segments.date DURING LAST_30_DAYS
ORDER BY metrics.cost_micros DESC

Read the full file on GitHub · 503 lines

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 · -11 lines 0c703ef31853
  2. 14d ago Changed · +43 tokens per session eb6d70723e9a
  3. 2mo ago First seen · 514 lines · 73 tokens per session scan A 2fe7c872a191

Subscribe to this mod's changes

google-ads-gaql-query-guide is a skill published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (6 stars, last pushed 14d ago), licensed MIT. It adds 116 tokens to every session and 3,543 once invoked, about $0.0005 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-gaql-query-guide compared with skills from other repositories

google-ads-gaql-query-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-ads-gaql-query-guideAd-Superpowers/ad-superpowers-pluginSkill614d agoMITA116Claude 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