How to Wire Google Ads API Access to an AI Assistant When You Are the Only Person Who Knows the Account

A solo operator's guide to OAuth, credentials, and MCP setup.

· 8 min read
Cover illustration for “How to Wire Google Ads API Access to an AI Assistant When You Are the Only Person Who Knows the Account”
AI Tools for Paid Social Management · November 28, 2026 · 8 min read · 1,863 words

Google Ads MCP connects an AI assistant to your ad account so it can answer plain-language questions and make supported changes. For a solo operator, the wiring sequence is single-user OAuth, securely stored credentials, then an MCP server connected to Claude Code, Cursor, or another compatible client. The critical rule is that your OAuth credentials must come from the Cloud project approved for production access, and the connector must restrict what the assistant can touch.

What changed on September 9, 2026 and why the solo operator problem is now harder to ignore

On September 9, 2026, Google moved the Google Ads API access level from the developer token to the Cloud project that gives you your OAuth credentials. Sending a developer token still works for now, but Google ignores it, and a future major version will reject it. Pending Basic applications were closed during the transition and need resubmitting.

The access levels still go from Test to Explorer, then Basic and Standard. Explorer allows a capped number of daily production operations, Basic requires brand verification, and Standard requires a manual audit.

That changes where a solo setup can fail. Credentials from a different project fall back to Test access, with no production-account visibility. API v25 returns CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION, while older versions return ACTION_NOT_PERMITTED. An official MCP server removes the need for custom integration code, but not this dependency. A valid login from the wrong Cloud project is now the invisible blocker.

Why single-user OAuth is the right starting point, and what it actually grants

Google’s single-user authentication guide allows one person to authorize access through the gcloud CLI or the GenerateUserCredential example, bypassing the need to build an OAuth sign-in application. That fits the genuinely solo operator who controls the account and has no separate organizational setup. There is no second user to accommodate. A multi-user flow would solve a problem this account does not have.

Google’s OAuth overview recommends service accounts for workflows that need no human interaction, with single-user authentication as the fallback when account setup or organizational policy prevents that route. Single-user OAuth is therefore a starting point for this situation. It uses the access already attached to your Google login. You create an OAuth client ID and secret, then authorize that client to act on your behalf.

The grant is broader than one campaign or account. The adwords scope covers the Google Ads accounts your login can access, so narrower restrictions must come from the connector. Changes the agent makes show up in change history under your own login, and you can revoke access through Google’s third-party access list. If that user loses access, the connection stops working. The other catch arrives during setup, when generating a refresh token requires a passkey.

Generating the refresh token — the exact steps and the mistake that blocks everything downstream

Start in the Cloud project that has your approved access level. Configure its OAuth consent screen with the adwords scope, create an OAuth client ID and client secret, and download the client’s JSON file as credentials.json. For a solo operator running scripts, the desktop installed-app flow is the default. It enables offline access without another parameter. A web application flow instead needs access_type=offline, or the refresh token will not appear.

Next, identify the Google user with access to every account the assistant should manage, and make sure that user has a passkey. A new passkey may have a 7-day security delay before it is trusted. This can stop a Friday afternoon setup cold. Install the gcloud CLI and run gcloud version to check that it is available before starting authorization.

Run gcloud auth application-default login --client-id-file credentials.json, with --client-id-file pointing to the downloaded file. Do not leave out that flag. With that flag, the refresh token comes from your Google API Console project, and without it, the token comes from the gcloud CLI’s default project. The token can be created without a warning even when the credentials have the wrong access level.

Sign in as the selected user and verify identity with the passkey. If the app is unverified, the flow provides Advanced followed by Go to PROJECT_NAME (unsafe). The output file, application_default_credentials.json, contains client_id, client_secret, refresh_token, quota_project_id, and type set to "authorized_user". The refresh token lets the application get short-lived access tokens without asking you to sign in again. If access goes through a manager account, set login_customer_id to that manager’s 10-digit customer ID without hyphens.

Storing credentials so the AI assistant can reach them without exposing them

The refresh token belongs in secure storage outside repositories and hardcoded MCP configurations. Treat it as a password. It is what allows continued access after the initial sign-in, so exposing it undermines the boundary between your authorization and the tools acting on it. Give the assistant a working connection while keeping credentials out of its conversation.

Google’s Python authentication guide uses google-ads.yaml for credential configuration. Its fields for credentials include client_id, client_secret, and refresh_token, along with login_customer_id if access goes through a manager account. Keep that file outside the repository. These fields cover the credential block, and a client library may need other settings too. Google’s Python template also marks use_proto_plus and developer_token as required entries, which is distinct from the API transition away from using the developer token to determine access.

For the gcloud application-default-credentials route, set use_application_default_credentials to true in the YAML and omit the directly supplied token. Alternatively, pass credentials through GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, and GOOGLE_ADS_REFRESH_TOKEN. Environment variables are the safer default where the filesystem is shared or logged. The MCP server receives the same credential structure through its process environment, including the login customer ID when needed. Before moving on, rehearse revocation through Google’s third-party access list, which takes under a minute.

What Google's official MCP server can and cannot do as of November 2026

Diagram: MCP Server Tool Capabilities: April vs. November 2026. Visualizes: Show the evolution of the Google Ads official MCP server across two releases, contrasting what each version could and could not do.

MCP gives an AI assistant a standard way to discover tools, invoke them, and use their results. Compatible clients include Gemini CLI, Claude Code, Codex, Cursor, and VS Code. The server supplies the Google Ads tools, while OAuth supplies the authority to use the account.

The April 28, 2026 launch was read-only. Its two core tools were list_accessible_customers and search, with search running Google Ads Query Language, or GAQL, queries. The get_resource_metadata tool helps the model find field names. That version could read account data but could not change bids, pause campaigns, or create assets.

Version 0.0.6 changed that on November 2, 2026. It added four tools capable of modifying certain advertising resources, enabled by default in the bundled configuration. The update does not give agents control over campaigns, budgets, bidding strategies, or keywords, so “supports writes” is not enough to judge whether the server covers your work.

Google’s developer guide describes a concrete approval loop for supported changes. The agent first proposes an operation using validate_only, and the server returns a readable set of changes plus a checksum. After user approval, the agent calls the tool again with the matching checksum to commit the change. The checksum keeps the proposed operation the same between turns. It is not access control, and the server still cannot expose Smart Bidding internals, Performance Max asset-selection logic, or auction mechanics.

How do you connect Claude Code or Cursor to Google Ads MCP safely?

Connect the client to the MCP server with credentials supplied through the server process environment, keeping them out of the client’s configuration file. The credential block follows the structure already established, including client ID, client secret, refresh token, and the appropriate login customer ID. This is the hand-off from authorization to tools. The client can discover what the server offers, but successful authentication alone does not prove that the connection has the intended account access.

Before the first account query, run list_accessible_customers. Check its result against the accounts you expected. An unexpectedly long list reveals that the login grants broader access than you intended, even if you only plan to ask about one account. Confirm that the credentials come from the approved Cloud project and that login_customer_id identifies the intended access context, using the manager ID when working through a manager account.

Then restrict customer IDs at the connector layer. The adwords OAuth grant has no per-account version, and a login customer ID is not a substitute for a connector restriction. A well-built connector can limit operations to one account even when the underlying login reaches more. That distinction separates “the assistant was asked to use this account” from “the assistant is allowed to use only this account.”

Test the full chain with a simple GAQL query through search, and check for real production data, treating Test-level empty results as a failed check. Google’s API Developer Assistant, upgraded to v4.0.0 in August 2026, can generate GAQL from natural language to help validate what search executes. Make sure that read path works before trusting write operations. If Google revokes the refresh token after a compromise trigger, passkey change, or manual revocation, the connection stops rather than degrading gracefully, so know how to rerun the gcloud consent flow and update the credential file and server environment.

What the AI assistant can do once it is wired in — and where a platform closes the remaining gaps

A correctly connected assistant can query the metrics and attributes available through GAQL in plain language. These include search terms, campaign performance, audience segments, and conversion data. It can also discover resource structures and field names without sending you back to the documentation. This removes much of the query-writing work. The server reads the results of Google’s bidding or auction systems, which limits its ability to explain every decision made by the algorithms behind them.

For supported writes, version 0.0.6 can create assets including text, images, sitelinks, callouts, structured snippets, and YouTube references through the checksum approval flow. Bid adjustments, budget pacing changes, campaign activation or pausing, and changes to keywords, audiences, or campaign structure need a separate write path or additional tooling. This Google Ads connection also cannot handle work across channels such as Meta, LinkedIn, Reddit, or Twitter.

For a solo operator who needs those operations, the choice depends on how the setup is maintained and how changes get approved, as well as whether it works with MCP. A DIY integration gives an LLM tools to query and mutate the Google Ads API directly, and API and AI subscriptions add costs on top of the integration itself. The operator owns its maintenance. A confirm-first setup instead turns a plain-language instruction into proposed operations, such as pausing a campaign or raising a budget, and executes after approval. A unified platform can handle that broader work without the operator having to build more infrastructure, but it should be judged by which writes it supports and how it controls approval.

The practical recommendation is to automate bounded work and retain approval for strategic changes. Tactical bid adjustments within established parameters, budget pacing, template-based creative variants, reporting, and anomaly detection fit the first group where the required tools exist. Strategic budget shifts across channels, new audience-targeting approaches, and major attribution-model changes need human approval. Use daily automated alerts for spend spikes or significant performance drops, with a weekly review of automated decisions and trends.

Sources

  1. Single-user authentication workflow  |  Google Ads API  |  Google for Developers
  2. Use OAuth 2.0 to access Google Ads API  |  Google for Developers
  3. Authentication and authorization  |  Google Ads API  |  Google for Developers

More in AI Tools for Paid Social Management