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.
git clone --depth 1 https://github.com/cohnen/mcp-google-adsWrote 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.
[](https://agentmods.dev/rules/cohnen/mcp-google-ads/gaql-google-ads-query-language)<a href="https://agentmods.dev/rules/cohnen/mcp-google-ads/gaql-google-ads-query-language"><img src="https://agentmods.dev/badge/rules/cohnen/mcp-google-ads/gaql-google-ads-query-language/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.
<a href="https://agentmods.dev/rules/cohnen/mcp-google-ads/gaql-google-ads-query-language"><img src="https://agentmods.dev/badge/rules/cohnen/mcp-google-ads/gaql-google-ads-query-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00008 | $0.02584 |
| Opus 5 | $0.00004 | $0.01292 |
| Sonnet 5 | $0.00002 | $0.00517 |
| Haiku 4.5 | $0.00001 | $0.00258 |
Grade A, and why
gaql-google-ads-query-language 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 11d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- gaql-google-ads-query-language — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Google Ads Query Language (GAQL) Guidelines
Overview
The Google Ads Query Language (GAQL) is a powerful tool for querying the Google Ads API that allows you to retrieve:
- Resources and their related attributes, segments, and metrics using
GoogleAdsService.SearchorGoogleAdsService.SearchStream - Metadata about available fields and resources using
GoogleAdsFieldService
Field Categories
Understanding field categories is essential for building effective GAQL queries:
- RESOURCE: Represents a primary entity (e.g.,
campaign,ad_group) that can be used in the FROM clause - ATTRIBUTE: Properties of a resource (e.g.,
campaign.id,campaign.name). Including these may segment results depending on the resource relationship - SEGMENT: Fields that always segment search queries (e.g.,
segments.date,segments.device) - METRIC: Performance data fields (e.g.,
metrics.impressions,metrics.clicks) that never segment search queries
Query Structure
A GAQL query consists of the following components:
SELECT
<field_1>,
<field_2>,
...
FROM <resource>
WHERE <condition_1> AND <condition_2> AND ...
ORDER BY <field_1> [ASC|DESC], <field_2> [ASC|DESC], ...
LIMIT <number_of_results>
SELECT Clause
The SELECT clause specifies the fields to return in the query results:
SELECT
campaign.id,
campaign.name,
metrics.impressions,
segments.device
Only fields that are marked as selectable: true in the GoogleAdsField metadata can be used in the SELECT clause.
FROM Clause
The FROM clause specifies the primary resource type to query from. Only one resource can be specified, and it must have the category RESOURCE.
FROM campaign
WHERE Clause (optional)
The WHERE clause specifies conditions to filter the results. Only fields marked as filterable: true in the GoogleAdsField metadata can be used for filtering.
WHERE
campaign.status = 'ENABLED'
AND metrics.impressions > 1000
AND segments.date DURING LAST_30_DAYS
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.
- 11d ago First seen · 391 lines · 8 tokens per session scan A 6a538750e611
gaql-google-ads-query-language is a cursor rule published in the GitHub repository cohnen/mcp-google-ads (706 stars, last pushed 10mo ago), licensed MIT. It adds 8 tokens to every session and 2,584 once invoked, about $0.0000 per session on Opus 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-08-30.
Other cursor rules, from other repositories
about-codebase
General information about the Lineai MCP Server codebase and its purpose.
toc-readme
When updating README.md, the table of contents should contain only the second-level headings below it.
runwhen-infrastructure
Infrastructure conventions for scripts targeting Kubernetes and databases via RunWhen runners.
php-client-implementation
Guidelines for implementing MCP clients in PHP.
cursor_rules
Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness.
validate-design-early
Ask for design approval before implementing 100+ lines.