# Google Ads MCP server: access, queries and write controls

> Published 2026-12-01
> Source: https://viktor.com/blog/google-ads-mcp-server

Viktor, the [AI employee](https://viktor.com/ai-employee) who works in Slack and Microsoft Teams, reports on and changes Google Ads campaigns and budgets. A Google Ads MCP server is Google’s official, Apache 2.0-licensed bridge that lets MCP clients such as Gemini CLI, Claude and ChatGPT query the Google Ads API. You run it yourself, over `stdio` or on Cloud Run. Its only writes are standalone assets, video uploads and labels, and disabling the `labels` and `assets` categories in `tools_config.yaml` makes it read-only.

As of 1 December 2026, Google documents the server in its [Google Ads API developer guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server) (last updated 19 November 2026) and publishes the code in the [googleads/google-ads-mcp repository](https://github.com/googleads/google-ads-mcp) under the Apache 2.0 license. Bug reports go to that repository’s issue tracker. Start with a read-only configuration, one authorized customer account and a small query whose result you can check in Google Ads.

## What MCP is and how the server fits

The [Model Context Protocol](https://viktor.com/blog/what-is-model-context-protocol) is, in Google’s words, “an open standard that lets large language models (LLMs) securely interact with external data and applications.” Google calls its server “a standardized bridge to the Google Ads API” that lets AI agents “retrieve and analyze account data, create assets, upload videos, and manage labels by using natural language.”

Three parts take part in every request:

1. **The AI client** (the MCP host), such as Gemini CLI or Claude Code, receives your prompt and reads the list of tools the server offers.
2. **The Google Ads MCP server** turns the chosen tool call into Google Ads API requests. Google’s guide says read tools “query the Google Ads API directly,” while write tools first run a validation-only proposal.
3. **The Google Ads API** answers under the Google identity and Cloud project the server authenticates with.

Where the credentials and data sit depends on the mode. In local `stdio` mode, the client starts the server on your machine, and the [repository’s README](https://github.com/googleads/google-ads-mcp) notes that this mode “stores the ADC file path in the client’s config.” In the remote mode (Streamable HTTP, for example on Cloud Run), the server uses an OAuth proxy, so “no server secrets are stored in client configs.” Either way, the README warns that “connecting an LLM or agent to this server exposes your accessible Google Ads account data to that client,” and that its API calls carry a telemetry header Google uses for usage statistics.

## Hosted, self-hosted and other routes

Viktor covers the team version of this job: a report or a change requested in the channel where the marketing team already works, with the result posted back for review. The other routes are for people who want to run the connection themselves.

```json:object
{
  "_key": "k57",
  "_type": "table",
  "rows": [
    {
      "_key": "k51",
      "_type": "tableRow",
      "cells": [
        "Route",
        "Who runs it",
        "What it can change",
        "Good fit"
      ]
    },
    {
      "_key": "k52",
      "_type": "tableRow",
      "cells": [
        "Viktor (native Google Ads integration)",
        "Viktor; you connect with Sign in with Google",
        "Reads campaigns, ad groups, ads, keywords, assets, budgets and reports, and creates, changes, pauses or removes them",
        "A marketing team that wants reports and reviewed changes from Slack or Microsoft Teams"
      ]
    },
    {
      "_key": "k53",
      "_type": "tableRow",
      "cells": [
        "Google Ads MCP server, local stdio",
        "You, on your machine, with Application Default Credentials",
        "Standalone assets, video uploads and labels only",
        "One developer querying an account from a local AI client"
      ]
    },
    {
      "_key": "k54",
      "_type": "tableRow",
      "cells": [
        "Google Ads MCP server on Cloud Run",
        "You, in your Google Cloud project, with OAuth 2.0 web credentials",
        "The same as local, except video uploads, which need local mode",
        "A shared endpoint for several AI clients"
      ]
    },
    {
      "_key": "k55",
      "_type": "tableRow",
      "cells": [
        "Google Ads API with a client library",
        "Your developers",
        "Whatever your code and access level allow",
        "Fixed pipelines and custom tools"
      ]
    },
    {
      "_key": "k56",
      "_type": "tableRow",
      "cells": [
        "Community-built MCP servers",
        "Their maintainers and you",
        "Depends on the project",
        "Only after you have checked who maintains it and what it can do"
      ]
    }
  ]
}
```

Sources: [Viktor’s Google Ads integration](https://viktor.com/integrations/google-ads), [Google Ads MCP server guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server), [google-ads-mcp README](https://github.com/googleads/google-ads-mcp), [Google Ads API access levels](https://developers.google.com/google-ads/api/docs/api-policy/access-levels).

The difference for a marketing team, on Viktor’s own [Google Ads page](https://viktor.com/integrations/google-ads): he “reads accounts, campaigns, ad groups, ads, keywords, assets, budgets and performance reports, and creates, changes, pauses or removes them for you.” Google’s guide says its server “cannot create, modify, pause, or enable campaigns, ad groups, ads, budgets, or bids.” You message Viktor in a channel, he does the work in Google Ads and posts the result in the same thread, and he can run “a weekly Google Ads summary posted to your team’s channel” on a schedule. He works across the other tools your team has connected, out of [9,800+ integrations](https://viktor.com/integrations), so one request can pull data from Google Ads and cross-reference it with another tool, such as Gmail or Slack.

Changes stay under your control: a Google Ads tool you set to **Ask for confirmation** runs only after someone approves it, and a tool set to **Off** never runs, as his [integration permissions docs](https://viktor.com/docs/integration-permissions) describe.

[Have Viktor post a weekly Google Ads report in your channel (up to $100 in free credits) →](https://app.viktor.com/signup)

## Prerequisites: a Google Cloud project, access level and sign-in

### Do I still need a developer token?

No, per Google’s current pages. The [MCP server guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server) says “Google sunset developer tokens (`GOOGLE_ADS_DEVELOPER_TOKEN`) on September 9, 2026,” and that “the Google Cloud project that owns your OAuth client or service account determines your API access level.” You still need that Google Cloud project, with the Google Ads API enabled.

### Google Ads API access levels

Enabling the API grants your project Test access. The [access levels page](https://developers.google.com/google-ads/api/docs/api-policy/access-levels) lists four levels:

```json:object
{
  "_key": "k115",
  "_type": "table",
  "rows": [
    {
      "_key": "k110",
      "_type": "tableRow",
      "cells": [
        "Access level",
        "Can access",
        "Daily operation limit"
      ]
    },
    {
      "_key": "k111",
      "_type": "tableRow",
      "cells": [
        "Test",
        "Test accounts",
        "15,000 operations a day"
      ]
    },
    {
      "_key": "k112",
      "_type": "tableRow",
      "cells": [
        "Explorer",
        "Test and production accounts",
        "2,880 operations a day for production accounts, 15,000 for test accounts"
      ]
    },
    {
      "_key": "k113",
      "_type": "tableRow",
      "cells": [
        "Basic",
        "Test and production accounts",
        "15,000 operations a day for both"
      ]
    },
    {
      "_key": "k114",
      "_type": "tableRow",
      "cells": [
        "Standard",
        "Test and production accounts",
        "Unlimited operations a day for both"
      ]
    }
  ]
}
```

Google says “per day” is “a sliding 24 hour time period.” Explorer is applied for on the Google Ads API Overview page in the Cloud console, and Google may approve it automatically. Explorer also restricts some services, such as account creation, user management and planning tools. Without a production level, calls to a real account fail with `AuthorizationError.CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION`.

### Sign-in

Local `stdio` mode uses Application Default Credentials from an OAuth 2.0 client or a service account in your Cloud project, with the `https://www.googleapis.com/auth/adwords` scope. The remote Cloud Run deployment needs an OAuth 2.0 Web application client ID and secret instead.

## Which AI clients work with it

From Google’s pages, read on 1 December 2026:

- **Gemini CLI and Google Antigravity:** the guide shows configuration for both, in `~/.gemini/settings.json` and `~/.gemini/config/mcp_config.json`.
- **Claude Code:** the guide lists `~/.claude/settings.json` as a configuration file for the local server.
- **Claude and ChatGPT:** for a remote deployment, add “a custom connector pointing to your service URL with the `/mcp` path” and select OAuth 2.0 with your client ID and secret.
- **Codex CLI and Cursor:** the README shows `codex mcp add google_ads --url http://localhost:8080/mcp` and `.cursor/mcp.json` for Cursor.

Clients that cannot run an HTTP OAuth flow get a 401 from a remote deployment; the guide sends them to local `stdio` mode. Check your exact client’s current MCP and authentication support before you configure it.

## Is it free, and does it affect costs?

The server code is free to use under its Apache 2.0 license. Google’s [access levels and RMF page](https://developers.google.com/google-ads/api/docs/productionize/access-levels) says “the Google Ads API is free to use; there are no charges for using the Google Ads API at Explorer access, Basic access, or Standard access levels.” The exception it names: a Standard-access tool audited under the Required Minimum Functionality may owe non-compliance fees.

Other costs sit elsewhere. A Cloud Run deployment runs in your Google Cloud project, and Google’s [Cloud Run pricing page](https://cloud.google.com/run/pricing) describes it as “on-demand and pay per use,” with prices that depend on the selected region. Your AI client may have its own plan or usage charges. Per Google’s guide, the server’s own writes cannot touch campaigns, budgets or bids.

## Rate limits and quotas

Tool calls that reach the Google Ads API count against your project’s daily limit. Google’s [limits and quotas page](https://developers.google.com/google-ads/api/docs/best-practices/quotas) says:

- “A Search or SearchStream request counts as one operation against the user’s daily operation quota.”
- Paginated requests with a valid page token do not count against it.
- Requests rejected with a `GoogleAdsFailure` “still count against the user’s daily operation quota.”
- Going over the daily limit returns `RESOURCE_EXHAUSTED`.

Keep prompts narrow (one account, one period, the fields you need), so a model’s exploratory queries do not spend the quota a production pipeline needs.

## Establish identity and customer scope

Before connecting, identify the Google Cloud project, authenticated Google identity and single Google Ads customer approved for evaluation. Confirm the account is one your organization owns or is authorized to manage.

Permission to use a Google Ads account and permission for a Cloud project to access production accounts are separate requirements. If the existing project is not approved for the intended account, stop. Do not substitute a different project, borrow credentials or request wider account access to make the first query work.

Follow the official sign-in flow for the selected deployment; do not send credentials, authorization codes or credential files through an AI conversation.

For manager-account access, distinguish the target `customer_id` from the manager context, `login_customer_id`. The guide accepts the manager ID as `GOOGLE_ADS_LOGIN_CUSTOMER_ID` (“10 digits, without hyphens”) or per tool call. Write both roles in the evaluation plan before querying.

Consent should cover the account, data fields and destination of the answer. A reporting request does not authorize a budget change, a video upload or a new account connection.

## Set up the server locally

These steps summarize Google’s [guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server) as read on 1 December 2026. We did not run them for this post; follow the guide if it differs.

**1\.** Create or select a Google Cloud project with the Google Ads API enabled, and check its access level.

**2\.** Install Python, `pipx` and the `gcloud` tool.

**3\.** Create Application Default Credentials with the Google Ads scope:

```
gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/adwords,https://www.googleapis.com/auth/cloud-platform \
  --client-id-file=PATH_TO_CLIENT_SECRET_JSON
```

**4\.** Add the server to your client’s MCP configuration, with your project ID and the credentials path the previous command printed:

```
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "pipx",
      "args": ["run", "--spec", "google-ads-mcp==0.0.6", "google-ads-mcp"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "PROJECT_ID",
        "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON"
      }
    }
  }
}
```

**5\.** Point `GOOGLE_ADS_MCP_TOOLS_CONFIG` at a read-only `tools_config.yaml` (next section) before the first query.

For a shared remote endpoint, the guide builds a container with Cloud Build and deploys it to Cloud Run with `--allow-unauthenticated` plus application-level OAuth. Its caution is worth copying into your runbook: never omit the OAuth client ID and secret with `--allow-unauthenticated`, because without them the server “exposes the container’s service account credentials to unauthenticated callers.”

## Configure a read-only evaluation

The documented default enables all five tool categories: `customers`, `search`, `metadata`, `labels` and `assets`. Merely asking the model to “read only” leaves write tools available.

Google’s documented read-only `tools_config.yaml` keeps the read categories on and the write categories off:

```
namespaces:
  customers: true
  search: true
  metadata: true
  labels: false
  assets: false
```

Two configuration details deserve attention:

- An empty `namespaces: {}` mapping enables all five categories.
- When `namespaces` is non-empty, omitted categories are disabled. Listing only disabled write categories also removes the read tools.

Check the loaded configuration and exposed tools rather than relying on the file’s name or location alone. If `GOOGLE_ADS_MCP_TOOLS_CONFIG` points to a missing or invalid file, the guide says the server “raises an error at startup instead of falling back to defaults.”

Keep the evaluation read-only throughout. Do not enable mutation categories just to find out what they do.

## Worked example: one question, one query, one answer

This walkthrough is illustrative. We did not run it for this post, so it shows no real output, and “Demo Store” stands for a business account you already have explicit permission to inspect.

**1\. The prompt.**

> For the approved Demo Store customer only, list each enabled campaign’s name and cost for the last 7 days. Use only the search tool. Do not list other customers or run mutation tools. Stop if this account is unavailable.

**2\. The tool call.** The search tool, `search_search`, takes structured parameters rather than a raw GAQL string: `customer_id`, `resource` and `fields`, plus optional `conditions`, `orderings` and `limit`. For this prompt the client would fill in the customer ID, the `campaign` resource, the fields `campaign.name` and `metrics.cost_micros`, and conditions for enabled status and the last 7 days. Use `metadata_get_resource_metadata` first if you are unsure a field is selectable.

**3\. The query the server builds.** The server turns those parameters into a GAQL SearchStream query, close to:

```
SELECT campaign.name, metrics.cost_micros
FROM campaign
WHERE campaign.status = 'ENABLED'
  AND segments.date DURING LAST_7_DAYS
```

Google’s guide adds that every query appends `PARAMETERS omit_unselected_resource_names=true`.

**4\. The response.** In the [Google Ads Query Language](https://developers.google.com/google-ads/api/docs/query/overview), each result row is a `GoogleAdsRow` “representing a resource,” holding the attributes and metrics you selected. Cost comes back as `metrics.cost_micros`: check its unit in the metrics reference the server mounts as `resource://metrics` before anyone reports a figure.

**5\. The answer to check.** The client should name the account, the period and the currency. Compare its campaign list and totals with the same date range in Google Ads before anyone shares them. Differences in date boundaries or account scope need an explanation, not an optimization recommendation.

The same report from Viktor is one message in the marketing channel:

> @Viktor pull cost by enabled campaign for the Demo Store Google Ads account for the last 7 days, in the account currency, and post the table here with the date range.

## Validate one narrow account read

Start with the agreed customer ID. Accessible-customer enumeration is not necessary when the authorized target is already known.

Ask the metadata tool for the `customer` resource’s selectable fields, then run a minimal identity read:

> For the approved Demo Store customer only, return customer ID, descriptive name, currency code and time zone. Use the customer resource and supported fields. Do not list other customers or run mutation tools. Stop if this account is unavailable.

Compare the returned identity, currency and time zone with Google Ads. Record the customer ID and read time. Do not proceed to a performance summary if those details disagree.

## Understand the limited write surface

Google documents [mutation support for standalone asset creation, video uploads and label management](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server). Its guide says the server “cannot link assets to campaigns, ad groups, or asset groups,” and cannot create, modify, pause or enable campaigns, ad groups, ads, budgets or bids. Video uploads work in local `stdio` mode only.

Do not infer broader editing support from the underlying Google Ads API. The server’s actual tool set determines the available operations.

Documented mutations have a propose-and-confirm boundary: the tool first runs with `validate_only=True` and returns human-readable `change_items` and a SHA-256 checksum bound to the `customer_id` and request payload. Only a second call with the matching checksum commits the change.

That checksum does not replace access control or prove a person approved the change. Google’s guide says so directly: it “does not replace access control,” and the way “to hard-block mutations” is to disable the `labels` and `assets` namespaces.

Google also distinguishes validation behavior: asset and label proposals use a Google Ads API validation request, while video-upload proposals validate the local file because the upload service has no dry-run mode.

No mutation is required for a successful reporting evaluation. If a separate authorized job later uses a supported write, the reviewer should see the target customer, exact proposed changes and the resulting record after execution. Any changed payload needs a fresh proposal and decision.

## Troubleshoot common errors

Error names below are from Google’s [common errors page](https://developers.google.com/google-ads/api/docs/common-errors) and the [quotas page](https://developers.google.com/google-ads/api/docs/best-practices/quotas).

```json:object
{
  "_key": "k402",
  "_type": "table",
  "rows": [
    {
      "_key": "k395",
      "_type": "tableRow",
      "cells": [
        "Error",
        "What Google says it means",
        "What to check"
      ]
    },
    {
      "_key": "k396",
      "_type": "tableRow",
      "cells": [
        "AuthorizationError.CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION",
        "The Cloud project has Test access only",
        "Target a test account, or upgrade the project’s access level"
      ]
    },
    {
      "_key": "k397",
      "_type": "tableRow",
      "cells": [
        "AuthorizationError.USER_PERMISSION_DENIED",
        "The authorized customer does not have access to the operating customer",
        "Set login_customer_id to the manager account ID, without hyphens"
      ]
    },
    {
      "_key": "k398",
      "_type": "tableRow",
      "cells": [
        "AuthenticationError.NOT_ADS_USER",
        "The Google account is not associated with any Google Ads account",
        "Sign in with an account that has Google Ads access"
      ]
    },
    {
      "_key": "k399",
      "_type": "tableRow",
      "cells": [
        "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
        "The access token lacks the Google Ads API scope",
        "Recreate credentials with the adwords scope"
      ]
    },
    {
      "_key": "k400",
      "_type": "tableRow",
      "cells": [
        "invalid_grant",
        "The refresh token expired or was revoked",
        "An OAuth consent screen for external users in Testing status issues refresh tokens that expire in 7 days"
      ]
    },
    {
      "_key": "k401",
      "_type": "tableRow",
      "cells": [
        "RESOURCE_EXHAUSTED",
        "The daily operation limit was exceeded",
        "Narrow the queries or apply for a higher access level"
      ]
    }
  ]
}
```

If access fails, stop at the failed identity, project or customer boundary. If a field fails, check resource metadata. If results disagree, reconcile scope and definitions before distributing the report. None of those failures justifies enabling write tools or widening access.

## Keep reporting and account changes separate

For a reporting workflow, define success as a reconciled answer: correct account, clear period, understood metrics and a source the marketing lead can inspect.

The server also differs from [AI Google Ads management](https://viktor.com/blog/ai-google-ads-management). Managing advertising includes strategy, measurement and decisions about spend. Connecting an MCP server establishes a technical route to the supported operations, not authority to make those decisions.

For an ad report from Viktor, check the Google Ads connection’s [Access settings](https://viktor.com/docs/integration-permissions) before assigning the account: in a Slack or Microsoft Teams workspace, **Everyone in the workspace** lets anyone on the team use the connection, while **Private (Invite only)** limits it to the person who connected it and the people they invite. Viktor’s [Slack reads are limited to what the person asking could see](https://viktor.com/docs/data-and-privacy); that Slack boundary does not choose who can use the advertising connection.

[Brief Viktor on a read-only ad report (up to $100 in free credits) →](https://app.viktor.com/signup) with the account, period and permitted output specified. Keep account edits outside that reporting instruction, and set the Google Ads tools that change data to Ask for confirmation before any change request.

For the broader role, [what an AI employee is](https://viktor.com/blog/what-is-an-ai-employee) explains the difference between a connection and an owned business deliverable.

## Frequently asked questions

### What is a Google Ads MCP server?

It is Google’s Model Context Protocol server for the Google Ads API, published under the Apache 2.0 license. It lets MCP-compatible AI clients list accessible accounts, read field metadata and run reporting queries, and make limited changes: standalone assets, video uploads and labels. Google’s guide says it cannot edit campaigns, ad groups, ads, budgets or bids.

### Do I still need a Google Ads developer token and a Google Cloud project?

You need the Cloud project, with the Google Ads API enabled and an access level that covers production accounts. Google’s guide says developer tokens were sunset on 9 September 2026; the Cloud project that owns your OAuth client or service account now determines your access level.

### Which AI clients work with it: Claude, ChatGPT, Gemini, Cursor?

Google’s guide shows Gemini CLI, Google Antigravity and Claude Code, and custom connectors in Claude and ChatGPT for a remote deployment. The README adds Codex CLI and Cursor. A client needs MCP support and, for a remote server, an OAuth flow.

### Is it free, and does it affect my Google Ads or API costs?

The code is Apache 2.0, and Google says there are no charges for using the Google Ads API at the Explorer, Basic and Standard access levels, apart from possible RMF non-compliance fees for Standard access. A Cloud Run deployment is billed to your Google Cloud project, and your AI client may charge for its own use. The server cannot change budgets or bids.

### Is the Google Ads MCP server read-only?

Not by default. All five tool categories are enabled until you load a `tools_config.yaml` that disables `labels` and `assets`. That configuration, not a prompt, is what makes a deployment read-only.