PaidSync>Blog>How to Run a GAQL Query in Google Ads With AI

How to Run a GAQL Query in Google Ads With AI

Founder written
Author: Ahmed Ashraf|4 min read|Updated October 24, 2026
$1B+ ad revenue generated $500M+ managed Ex-Scandiweb paid media lead 630+ MCP tools

To run a GAQL query in Google Ads with Claude or ChatGPT, connect your Google Ads account to PaidSync.ai and ask the assistant to run a GAQL query, which reads almost any resource in the account. GAQL is Google's query language. The tool is read-only, so a query cannot change anything.

Which Tools Do the Work

GAQL is the query language behind Google Ads reports. When no ready-made report fits, Claude can write the query and run it:

run_gaql_query and list_accounts only read your account.

How the Workflow Is Built

ToolWhat it does
run_gaql_queryRuns the query you describe
list_accountsShows which accounts you can run it on

A query uses SELECT, FROM, WHERE, ORDER BY and LIMIT, for example SELECT campaign.id, campaign.name FROM campaign. You do not have to write it yourself. Describe the table you want, and have the assistant show the query it ran so you can reuse it.

How to Run a GAQL Query in Google Ads With Claude in 5 Steps

These steps use Claude to run a GAQL query. PaidSync.ai also works in ChatGPT, and the prompts are the same.

1

Connect Google Ads to PaidSync.ai

Start at paidsync.ai, then link Google Ads through Google's own sign-in screen. No developer token and no Google Cloud project are involved. The login you choose must reach the account where you will run a GAQL query.

2

Add PaidSync.ai to Claude

Open Claude's connector directory, add PaidSync.ai and sign in. Ask "list my Google Ads accounts", then pick the account where you will run a GAQL query.

3

Describe the data

Say what you want in plain words, such as paused campaigns with their budgets, or the top search terms by clicks.

4

Review the query

Ask the assistant to show the GAQL it wrote before running it, so you can check the fields and filters.

5

Run and refine

Run it, then refine the query with a date filter or a limit until the table is what you need.

How to Check the Result

Compare a total from the query with the same total in Google Ads for one campaign. If they match, you can trust the rest of the table.

Use these two prompts to run a GAQL query, in this order.

"Run a GAQL query that lists all paused campaigns with their daily budgets."
Reads your account and changes nothing.
"Run a GAQL query for the ten ad groups with the most clicks in the last 30 days."
Reads your account and changes nothing.

How PaidSync.ai Protects You

Every Google Ads tool PaidSync.ai offers is on the Google Ads MCP server page, including the tools used to run a GAQL query.

Frequently Asked Questions

How do I run a GAQL query in Google Ads?

In Google Ads, open the query builder or the API and write a GAQL statement. With PaidSync.ai, ask Claude or ChatGPT in plain English, and it writes and runs the query for you.

Can a GAQL query change my account?

No. run_gaql_query is read-only. Changes go through the write tools, which preview first.

Can ChatGPT run a GAQL query in Google Ads?

Yes. PaidSync.ai connects Google Ads to ChatGPT and to Claude, and the same tools run in both, so you can ask it to run a GAQL query the same way you would in Claude.

What do I need before I run a GAQL query?

A connected Google Ads account. The query is written for you from your description.

How much does it cost?

PaidSync.ai is free for 15 tasks a month with no card, enough to run a GAQL query and see the result. Pro starts at $99 a month. See pricing.

How to Compare Campaign Performance in Google Ads With AI→ How to Review Change History in Google Ads With AI→ How to Check Daily Spend in Google Ads With AI→ Google Ads MCP Server with Full Write Access→

PaidSync.ai runs 630+ tools across 14 ad and analytics platforms. Connect your accounts once and use them in the AI assistant you already work in.

Get Started Free Book a Demo