gaql-report-builder

Installation
SKILL.md

GAQL Query Builder

A question in words goes in; a query that runs comes out, with the table it returns. The skill writes the query, checks it against what the API refuses, runs it, fixes what Google sends back, and only then shows the result. Every number in the table comes from the run.

Before you start

  1. Get the question straight. If any of these is missing, ask once, and use the default when the user doesn't know:
    • What to measure. Cost, clicks, conversions, value, impression share. If they say "lead" or "sale", ask whether that is the account's Conversions column (all primary conversion actions) or one action. Default: the Conversions column.
    • What one row is. Per campaign, per day, per hour, per keyword, per search term.
    • Which part of the account. For example "non-brand search campaigns". Default: everything that spent.
    • The dates. Default: the last 30 complete days, ending yesterday. "Last quarter" means the previous calendar quarter.
  2. Ask which forms they need: the API, a Google Ads script, the BigQuery Data Transfer. Default: all three.
  3. Repairing a query? Ask for the exact query and the exact error text. Both matter: the error names the field Google refused.
  4. If the InsightfulPipe MCP is connected with Google Ads:
    • Call query_contexts with request="accounts" and platform="google-ads". Note workspace_id, brand_id and the account_id (customer id). With several accounts, ask which one. A manager account holds no campaigns, so pick a client account under it.
    • Call query_contexts with request="actions_details", platform="google-ads" and actions=["gaql"], and follow the body it returns.
    • Run SELECT customer.descriptive_name, customer.currency_code, customer.time_zone FROM customer once. Hours, days and dates in every result are in this time zone.
  5. If nothing is connected, build the query anyway. Say at the top that it was checked but not run, and that connecting Google Ads through InsightfulPipe lets the skill run it and fix what Google refuses.
Installs
1
First Seen
7 days ago