Google Ads in your coding agent

Google Ads data in your coding agent

Put Google Ads in Claude Code, Codex, Cursor, VS Code or Windsurf through the GSC Wizard MCP server. The agent reads Quality Score, landing pages, ad spend and organic rankings for the same pages, then finds the template, redirect or canonical in your repository that explains them. It reads only and cannot change your campaigns.

Endpoint: https://mcp.gscwizard.com/mcp

The short answer

Link Google Ads to your property in GSC Wizard and create an API key. Then add one entry to your agent:

  1. Claude Code: one claude mcp add command.
  2. Codex: codex mcp add, or a block in ~/.codex/config.toml that lists only the Google Ads tools.
  3. Cursor, VS Code, Windsurf: one JSON entry. Cursor and VS Code cap long tool lists, so check that the Ads tools are switched on.
Before you start

Connect Google Ads in GSC Wizard, not in your coding agent

your coding agent reads Google Ads through GSC Wizard, which keeps a copy of your Ads data next to the property's Search Console history. The Google sign-in for Ads happens once, in the web app; no assistant can do that step for you.

  1. 1

    Start a trial or plan

    Sign in at tool.gscwizard.com with Google and add your Search Console property. Google Ads and the MCP server come with every plan at no extra charge, and every account starts with a 7-day free trial.

  2. 2

    Connect Google Ads on the property

    Open the property, click Google Ads Overview at the top of the PAID SEARCH section and press Connect Google Ads. Pick the Google login that can see your Ads accounts; it need not be your Search Console login. Google's consent screen says "see, edit, create and delete" because Google has no read-only Ads permission, but GSC Wizard only runs reporting reads.

  3. 3

    Link the Ads account to the property

    Click Choose account, then Link to this property next to the account that advertises the site. Client accounts under a manager account are listed too.

  4. 4

    Let the import run

    Sync now imports the newest months at once; the background sync fills in 16 months and then re-reads the last 14 days daily. Details are in the Google Ads setup guide.

Claude Code

Google Ads in Claude Code

One command adds the server with an API key header.

  1. 1

    Create an API key

    In GSC Wizard, create a key under Account → API keys. Read-only is enough for every report tool.

  2. 2

    Add the server to Claude Code

    Run claude mcp add --transport http gsc-wizard https://mcp.gscwizard.com/mcp --header "Authorization: Bearer gscw_live_...".

  3. 3

    Check and ask

    Type /mcp inside Claude Code to see the server and its tools, then ask about Google Ads next to the code.

/plugin install seo-gsc-wizard@claude-community installs the server together with ready-made SEO skills. For the Claude app itself, see connect Google Ads to Claude.

OpenAI Codex

Google Ads in Codex

The Codex CLI, the IDE extension and the Codex app share ~/.codex/config.toml. Run codex mcp add gsc-wizard --url https://mcp.gscwizard.com/mcp and codex mcp login gsc-wizard to sign in, or use the block below, which keeps Codex to the Google Ads read tools plus two page tools and reads the key from an environment variable.

[mcp_servers.gsc-wizard]
url = "https://mcp.gscwizard.com/mcp"
bearer_token_env_var = "GSCW_API_KEY"
enabled_tools = [
  "list_sites",
  "get_google_ads_setup",
  "get_google_ads_overview",
  "get_google_ads_search_terms",
  "get_google_ads_keywords",
  "get_google_ads_landing_pages",
  "get_google_ads_shopping",
  "get_google_ads_change_history",
  "get_google_ads_health",
  "get_paid_vs_organic",
  "get_product_matrix",
  "get_replaceable_spend",
  "get_search_scorecard",
  "get_page_performance",
  "inspect_url"
]
tool_timeout_sec = 120
Cursor

Google Ads MCP in Cursor

The Add to Cursor link installs the server and opens the GSC Wizard sign-in. To use a key instead, add this to ~/.cursor/mcp.json or .cursor/mcp.json in one repository:

{
  "mcpServers": {
    "gsc-wizard": {
      "url": "https://mcp.gscwizard.com/mcp",
      "headers": { "Authorization": "Bearer gscw_live_..." }
    }
  }
}

Cursor keeps only the first 40 tools of a server. The full GSC Wizard server has more than 130, and the Google Ads tools are not among the first 40. Open the server in Cursor's MCP settings, check that the 16 Google Ads tools are listed and switched on, and switch off tool groups you do not need.

VS Code and Windsurf

VS Code with GitHub Copilot, and Windsurf

VS Code reads .vscode/mcp.json, uses servers rather than mcpServers, and can prompt for the key so it never lands in the repository. It sends at most 128 tools per request, so pick the Google Ads tools in Copilot Chat's tools list in agent mode.

{
  "inputs": [
    { "id": "gscw-key", "type": "promptString", "description": "GSC Wizard MCP key", "password": true }
  ],
  "servers": {
    "gsc-wizard": {
      "type": "http",
      "url": "https://mcp.gscwizard.com/mcp",
      "headers": { "Authorization": "Bearer ${input:gscw-key}" }
    }
  }
}

Windsurf reads ~/.codeium/windsurf/mcp_config.json and uses serverUrl:

{
  "mcpServers": {
    "gsc-wizard": {
      "serverUrl": "https://mcp.gscwizard.com/mcp",
      "headers": { "Authorization": "Bearer gscw_live_..." }
    }
  }
}
What an answer looks like

Quality Score problems that live in your code

Landing page experience is the Quality Score component where SEO work shows up in Ads.

Claude Code with GSC Wizard example data

Which keywords have a below-average landing page experience, and which pages do they point to?

Calledget_google_ads_keywords{ siteUrl: "sc-domain:example.com", belowAverageLandingPageOnly: true }

Six keywords have a below-average landing page experience. Four of them send people to /pricing:

KeywordQSLanding page
[project management software]4/pricing
"team task tracker"5/pricing
[kanban board tool]5/features/boards

In this repo /pricing is rendered by app/pricing/page.tsx and loads three chart libraries before the plan table. I can move them below the fold and add the keywords' wording to the intro. Want a diff?

Example data on example.com, not a real account. Your answer uses your own linked Google Ads account and Search Console property.
Plain language in, finished answers out

What to ask your coding agent

Questions that end in a code change.

"Which keywords have a below-average landing page experience? Find their templates." "Which paid landing pages does Google not index, and why does our code block them?" "Which pages get ad spend but no organic clicks? Check their canonical tags." "Do our ads send people to a different page than the one that ranks?" "Which landing pages convert paid visitors worse than organic ones?" "Compare the final URLs in Google Ads with our redirect rules."

If the tools do not appear

The server is listed, the Ads tools are not

Cursor (40) or VS Code (128) cut the list. Switch off tools you do not need, or use Codex with the enabled_tools list above.

Every call returns 401

Check the header is exactly Authorization: Bearer gscw_live_... with the full key, that the key is not revoked, and that the account has an active subscription or trial.

A tool answers "notConfigured"

No Google Ads account is linked to that property yet. Link one on the property's Google Ads Overview in the web app, then ask again.

Numbers differ from Google Ads

Ads days follow the account time zone, and the last 14 days are re-read daily as conversions arrive. Ask for the setup status: it says when each account last synced.

Same server, other assistants

Using a different AI tool?

See also the Google Search Console MCP, the paid vs organic report and the Google Ads assistant docs. Configs for every other client are on Cursor, VS Code and other clients and Codex.

Frequently asked questions

Why would a coding agent need Google Ads data?

Landing pages are code. Quality Score's landing page experience, paid pages Google does not index, and ads that send people to a different page than the one that ranks are all fixed in templates, redirects and canonical tags. With the data in the agent, it can find the page and the template in one session.

Cursor does not show the Google Ads tools. Why?

Cursor passes only the first 40 tools of a server to the model, and the full GSC Wizard server has more than 130. Open the server in Cursor's MCP settings and switch off the tools you do not need until the 16 Google Ads tools fit, or use Claude Code or Codex, where you can list exactly the tools you want.

Can I use OAuth instead of an API key?

Yes, in clients that support it: the Cursor install button, the Codex login command and Grok Build all open the GSC Wizard sign-in. Keys suit headless runs such as CI and codex exec. Keep a key in an environment variable or a prompt input, never in a committed file.

Can a coding agent change my Google Ads campaigns?

No. No tool changes a bid, budget, keyword, ad or campaign, and there is no raw Google Ads query tool. Link, unlink and sync change only GSC Wizard's own link and stored copy. Where a report suggests a change, you make it in Google Ads yourself.

What does it cost?

Google Ads and its 16 tools are part of every GSC Wizard plan at no extra charge, and every account starts with a 7-day free trial. After a trial ends without a subscription, the MCP stops answering. See pricing.

Fix the pages your ads depend on

Link your Ads account in GSC Wizard and add one entry to your coding agent. It then sees Quality Score, spend and rankings next to the code that renders the page.

Search Console tips in your inbox

Practical GSC and GA4 workflows, product updates and SEO experiments. No spam, unsubscribe anytime.