Table of Contents
- 1. The official Google Ads MCP server
- 2. A Google Cloud project with API access
- 3. OAuth credentials the server can refresh
- 4. A host that keeps the endpoint online
- 5. Streamable HTTP transport and token storage
- 6. Tool scoping and the confirm gate
- 7. Client wiring for Claude Code, Codex and Cursor
- 8. GAQL and the companion agent skills
- The eight parts at a glance
- How to choose your setup
- Frequently asked questions
- Conclusion
A Google Ads MCP server is a Model Context Protocol bridge between the Google Ads API and an AI agent, exposing account data as callable tools such as GAQL search and resource metadata lookups. Google publishes an official open-source implementation in Python that runs over either stdio or Streamable HTTP.
Most write-ups about connecting an AI agent to Google Ads stop at a single laptop: install the server, point one desktop client at it, ask a question. That works for one analyst. It does not work for a team, where several people and several unattended agents need the same account data, and it does not survive the laptop closing. The eight parts below are what a shared, always-on deployment of the official server actually consists of, each one tied to the page that documents it.
1. The official Google Ads MCP server

The starting point is googleads/google-ads-mcp, Google’s own implementation, published under the Apache 2.0 licence and written in Python with a Dockerfile in the repository. It has been developed in the open since October 2025 and carries over a thousand stars, which matters mainly because a first-party server tracks Google Ads API changes without a vendor in between.
The tool surface is narrow and reporting-shaped. search runs a GAQL query against an account, get_resource_metadata returns the structure of a resource type such as campaign so an agent can work out which fields exist, and list_accessible_customers returns the customer IDs the authenticated user can reach. A second group covers account housekeeping: create_asset for text, image, YouTube video, sitelink, callout and structured snippet assets, upload_video_asset, manage_labels and manage_label_associations.
Alongside the tools the server publishes four MCP resources an agent can read directly: the Google Ads API discovery document, the available reporting metrics, the available segments, and the current release notes. Those exist so the model can discover the API surface instead of guessing at field names.
One nuance worth knowing before you plan around it: Google’s integration guide describes the current release as read-only, while the repository README documents the mutate tools above behind a confirmation workflow. Check which behaviour the version you install actually exposes rather than assuming either description covers your build.
2. A Google Cloud project with API access

Access to the Google Ads API changed shape in 2026, and this is the part most older tutorials get wrong. Developer tokens — the 22-character alphanumeric strings issued from the API Center of a manager account, each carrying an access level that governed daily call volume and whether calls could hit production — were sunset on 9 September 2026. The latest version of the Google Ads MCP server no longer requires one, because API access levels are now associated with the Google Cloud project instead.
What that leaves you with is a Google Cloud project as the unit of access. The project needs the Google Ads API enabled, and it needs to hold Explorer, Basic or Standard access on the Google Ads API overview page. A project without one of those levels will authenticate and then fail on production accounts, which is the failure people usually misread as a credentials problem. If your project has not been granted a level yet, you apply for one.
The server reads the project through a GOOGLE_PROJECT_ID environment variable. For a shared deployment, decide early whether one project fronts every client account or whether each client gets its own, because that choice determines where quota is consumed and which Google account can see the API usage. The access level documentation is the page to check when a call is rejected.
3. OAuth credentials the server can refresh

The server authenticates to the Google Ads API with OAuth 2.0 or with a service account, and the shape you choose follows from who is meant to be acting. For a local single-user install, application default credentials are the least work: point GOOGLE_APPLICATION_CREDENTIALS at a credentials file, or run gcloud auth application-default login once and let the server pick up the result.
For anything shared, you want an OAuth 2.0 client ID and secret configured as a web application, which the server consumes through GOOGLE_ADS_MCP_OAUTH_CLIENT_ID and GOOGLE_ADS_MCP_OAUTH_CLIENT_SECRET. The server then runs an OAuth proxy, each caller signs in with their own Google account, and every tool call executes under that caller’s identity rather than a shared token. That is the difference between a server a team can audit and a server that looks like one person to Google.
Three details on the consent screen are responsible for most of the failed first connections. The https://www.googleapis.com/auth/adwords scope has to be added under Data Access. Redirect URIs have to be registered for every client you plan to connect, including Claude’s and ChatGPT’s callback URLs. And while the consent screen is in Testing, every Google account that will connect must be listed as a test user. If accounts are reached through a manager account, set GOOGLE_ADS_LOGIN_CUSTOMER_ID as well.
4. A host that keeps the endpoint online

In stdio mode the server is a child process of one MCP client on one machine. It starts when that client starts and dies when the laptop sleeps, which is fine for exploratory work and useless for a scheduled report or a second colleague. A shared setup needs the server to be a long-running service at a stable HTTPS address, with a process supervisor that restarts it, somewhere to keep OAuth state across restarts, and a redeploy path for when the upstream repository moves.
Google documents one route for this: build the repository’s Dockerfile into an image and deploy it to Cloud Run, with FASTMCP_HOST set to 0.0.0.0 and GOOGLE_ADS_MCP_BASE_URL set to the service URL after the first deploy assigns one. It works, and it also makes your reporting stack something you now operate: image rebuilds on every upstream change, Cloud Build and Artifact Registry in the loop, IAM decisions about whether the service is invoked unauthenticated.
The alternative is to have the deployment managed. SetupYourClaw deploys and runs AI agents as always-on instances with their connections already wired, which moves the hosting, the credentials and the restarts off your plate and leaves you an endpoint that answers. That is the honest trade: less control over the box, no server to provision or patch. Either way, pair it with monitoring built for unattended agent runs, because a reporting endpoint that fails quietly is worse than one that is plainly down.
5. Streamable HTTP transport and token storage

The transport switch is not a flag you set directly. When the OAuth client ID and secret environment variables are present, the server moves itself from stdio to the streamable-http transport and serves an MCP endpoint — http://localhost:8080/mcp by default, or your public base URL in a deployed service. From then on it is a separate process that clients connect to over the network, not something a client spawns.
That raises the question of where OAuth state lives. The server offers several storage backends through GOOGLE_ADS_MCP_STORAGE_TYPE: memory, filetree on a mounted path, redis, or firestore. Memory is the wrong answer for a shared endpoint, because every restart logs everyone out. Redis and Firestore need their client libraries installed alongside the server. Stored tokens are encrypted by default, with an optional GOOGLE_ADS_MCP_STORAGE_ENCRYPTION_KEY, and if you run more than one instance you must set a shared GOOGLE_ADS_MCP_JWT_SIGNING_KEY so tokens signed by one replica are accepted by the others.
Because the server is built on FastMCP, its runtime settings can also be captured declaratively in a fastmcp.json project configuration rather than assembled from command-line arguments at deploy time. For clients that still only speak stdio, the mcp-remote npm proxy bridges a local stdio client to a remote OAuth-protected endpoint.
6. Tool scoping and the confirm gate

An MCP server exposes your data to whatever model connects to it, so the useful default is to publish less. The server reads a tools_config.yaml that enables or disables individual tools and whole namespaces and lets you rename their prefixes. A default config with everything enabled ships with the package, so the server runs without one; for a strictly read-only deployment you set labels: false and assets: false, which removes the mutate tools from the surface entirely. A config file that is missing when explicitly requested, or invalid, makes the server fail to start rather than fall back — which is the correct behaviour for something that governs write access.
Where mutate tools are enabled, they run a two-step propose-and-confirm workflow. The first call validates with validate_only=True, using the Google Ads API dry run where it is supported, and returns readable change items plus a cryptographic checksum bound to the customer ID and the exact parameters. Committing requires a second call with the same parameters and that checksum. A missing or mismatched checksum is rejected before anything touches the account, so a model cannot drift from what was approved.
Scope at the platform too. Google Ads account access levels run from Email-only through Billing, Read-only, Standard and Admin; grant the authenticating user Read-only where reporting is the whole job. The same reasoning behind approval gates for unattended agent runs applies here: a limit enforced outside the prompt is the only kind that holds.
7. Client wiring for Claude Code, Codex and Cursor

With a running endpoint, each client needs one entry. For a local install, Google’s documented configuration adds a google-ads-mcp entry under mcpServers that runs the server through pipx run --spec git+https://github.com/googleads/google-ads-mcp.git google-ads-mcp, with GOOGLE_PROJECT_ID and GOOGLE_APPLICATION_CREDENTIALS in its env block. Pinning a published version with pipx run --spec "google-ads-mcp==X.Y.Z" is the better habit for a team, because it stops two people running different server builds against the same account.
For a deployed server the entry is simpler and the client just points at the URL. Claude Code adds MCP servers from the command line and keeps them in project or user scope, so a repository can carry the Google Ads connection for everyone who checks it out. Codex and Cursor take the same remote endpoint through their own MCP configuration, which is the main practical argument for the HTTP transport: one deployment serves every client and every agent instead of each developer maintaining a Python install.
Remember that each client’s OAuth callback URL has to be registered in the Cloud project before its sign-in will complete. This is the step that produces a confusing redirect error for the second client after the first one worked perfectly.
8. GAQL and the companion agent skills

The search tool takes GAQL, the Google Ads Query Language, and queries resources, attributes, segments, metrics and metadata through GoogleAdsService and GoogleAdsFieldService, returning rows that each represent a resource with the requested fields. A model that writes GAQL well gets clean numbers; a model that guesses at field names burns tokens on API errors, which is why the metadata tool and the metrics and segments resources exist.
Google closes that gap with packaged instructions rather than prompt engineering. The google/skills repository holds agent skills for Google products, including google-ads-api-mcp-setup, google-ads-api-account-diagnostics and google-ads-api-quickstart; npx skills add google/skills/skills/ads installs the set. They are portable instruction modules that teach an agent how to drive this server with lower token overhead, and they work across Claude Code, Codex, Cursor and Antigravity.
For deeper work there is the Google Ads API Developer Assistant, a plugin for Claude Code and Antigravity that adds local Protobuf schema inspection, programmatic GAQL validation, client library code generation including mutate scripts, and offline conversion troubleshooting. Together with the server, that is the stack behind a working AI client reporting agent — live account access plus enough encoded knowledge to query it correctly.
The eight parts at a glance
| Part | What it provides | Needed for a shared setup? |
|---|---|---|
| Official MCP server | GAQL search, resource metadata, accessible customers, asset and label tools | Yes — the core |
| Google Cloud project | Google Ads API enabled plus an API access level | Yes |
| OAuth credentials | Per-caller sign-in, or ADC for a single user | Yes — client ID and secret |
| Managed or self-run host | A stable HTTPS endpoint that stays up and gets redeployed | Yes |
| Transport and storage | Streamable HTTP, plus persistent OAuth state | Yes — not memory storage |
| Tool scoping | tools_config.yaml plus the propose-and-confirm checksum | Strongly recommended |
| Client wiring | Endpoint and callback registration per MCP client | Yes, once per client |
| GAQL skills | Query knowledge and diagnostics as installable modules | Optional but high value |
How to choose your setup
Choose by how many people and agents need the data. One analyst exploring an account should install the server locally in stdio mode with application default credentials and stop there; the HTTP transport, token storage and OAuth consent screen are pure overhead for a single user. The moment a second person, a scheduled report or an unattended agent needs the same account, move to a deployed Streamable HTTP endpoint with an OAuth client, persistent storage and a pinned server version. Decide separately, and in writing, whether that endpoint exposes mutate tools at all — a read-only config plus Read-only account access is the setup you can leave running without supervision. Then pick who operates it: your own Cloud Run service, or a managed deployment.
Frequently asked questions
Do I still need a Google Ads developer token?
Not for the current server. Developer tokens were sunset on 9 September 2026, and the latest version of the Google Ads MCP server does not require one, because API access levels now attach to the Google Cloud project instead. Your project needs the Google Ads API enabled and an Explorer, Basic or Standard access level.
Is the official Google Ads MCP server read-only?
Google’s integration guide describes the current release as read-only, while the repository README documents asset and label mutate tools behind a propose-and-confirm workflow. Check the version you install. If you want read-only guaranteed, set labels: false and assets: false in tools_config.yaml, which removes those tools from the surface.
Can several people share one Google Ads MCP server?
Yes, and that is what the OAuth proxy mode is for. With an OAuth client ID and secret configured, the server runs over Streamable HTTP and each caller signs in with their own Google account, so every tool call executes under that person’s identity and permissions rather than one shared token.
Why does my agent authenticate but fail on production accounts?
That pattern almost always means the Google Cloud project lacks a production API access level rather than that credentials are wrong. The older form of the error mentioned a developer token approved only for test accounts. Check the project’s access level on the Google Ads API overview page and apply for one if needed.
Does this work with Codex and Cursor as well as Claude?
Yes. A deployed Streamable HTTP endpoint is client-agnostic, so Claude Code, Codex, Cursor and other MCP clients connect to the same server. Each client’s OAuth callback URL must be registered as an authorised redirect URI in the Cloud project first, or its sign-in will fail with a redirect error.
Conclusion
The official Google Ads MCP server is the easy part of this stack. The work is everything around it: a Cloud project with the right access level, an OAuth client with the right scope and redirect URIs, persistent token storage, a scoped tool config, and a process that stays running when nobody is watching. That is infrastructure, not advertising work. If you would rather have the agent and its Google Ads connection running and maintained than build and patch that yourself, SetupYourClaw deploys and operates always-on agents with their connections in place, so you keep your attention on the accounts rather than the box they run on.
