Google Ads API Developer Assistant
TL;DR: This assistant lets you interact with the Google Ads API using natural language. Ask questions, generate GAQL and code in several languages, and execute API calls directly in your terminal.
Overview
The Google Ads API Developer Assistant streamlines workflows for developers working with the Google Ads API. Use natural language prompts to:
- Get answers to Google Ads API questions.
- Construct Google Ads Query Language (GAQL) queries.
- Generate executable code in several languages using our client libraries for context.
- Retrieve and display data from the API.
This assistant is powered by the Antigravity (v4.0.0) and Claude Code agent frameworks and leverages AGENTS.md / CLAUDE.md files, native slash commands, and custom Skills to deliver persistent context, robust safety constraints, and automated execution pipelines.
Agentic Design & Approach
The Assistant uses a structured hierarchy of instruction files, slash commands, and specialized domain tools to ensure safe, precise, and highly competent interactions with the Google Ads API across supported agent environments.
1. Unified Context via AGENTS.md & CLAUDE.md
The master configuration files act as the system contract for the assistant:
- Version Cache Protocol: Automatically discovers and locks the latest active API version (cached in
config/api_version.txt).
- Version Parity Enforcement: Verifies parity between the runtime
google-ads Python package and local client_libs/google-ads-python source-of-truth definitions, issuing warnings on discrepancies.
- Code Generation Pipeline: Passes all generated Python code through strict
ruff linting before saving or displaying it.
- Programmatic GAQL Validation: Evaluates queries against field metadata and compatibility boundaries.
- Safety Constraints: Strictly prohibits running unreviewed mutate operations directly.
2. Domain-Specific "Skills" & Native Commands
Rather than relying on generic AI completions, the assistant is empowered with specialized, test-backed tool directories under plugins/google-ads-api-developer-assistant/skills/ and native slash commands under plugins/google-ads-api-developer-assistant/commands/.
Key capabilities support dual invocation (natural language prompts in Antigravity or dedicated slash commands in Claude Code):
- GAQL Validation (
/validate-gaql): Dry-runs queries via the API validate_only parameter.
- Object Inspection (
/inspect-object): Inspects API resources, nested messages, or enum definitions on the fly.
- MCC Account Mapping (
/get-cids): Maps client hierarchies and retrieves sub-account CIDs under manager accounts.
- Conversion Troubleshooting (
/troubleshoot-conversions): Investigates conversion upload summaries and pre-validates files.
- PMax Listing Filters & URL Exclusions (
/pmax-filter): Generates product partition trees and webpage URL exclusions.
- Structured Explanations (
/explain, /step-by-step, /assistant-tutorial): Delivers standardized multi-part explanations, step breakdowns, and interactive tutorials.
- Environment & Library Sync (
/sync-client-libs, /ext-version): Synchronizes client libraries and verifies active API version settings.
Key Features
-
Natural Language Q&A & Conceptual Guidance: Ask about Google Ads API concepts, fields, and usage in plain English, or use structured explanation commands.
- Natural Language: "What are the available campaign types?", "Tell me about reporting for Performance Max campaigns."
- Claude Code:
/explain, /step-by-step, /assistant-tutorial
-
Natural Language to GAQL & Client Library Code: Convert requests into executable code using the Google Ads Client Libraries.
- Code is saved to
saved/code/.
- "Show me campaigns with the most conversions last 30 days."
- "Get all ad groups for customer '123-456-7890'."
- "Find disapproved ads across all campaigns."