# StudioDDx Google Ads API MCP — agent instructions

Publisher: StudioDDx · https://studioddx.com/

## Connection and customer setup

- Public welcome and pricing: https://ads-mcp.studioddx.com/
- Sign in / create a workspace: https://ads-mcp.studioddx.com/login
- Authenticated console: https://ads-mcp.studioddx.com/console
- Remote MCP endpoint: https://ads-mcp.studioddx.com/mcp
- Hosted tool reference: https://studioddx.com/tools.md
- Privacy: https://studioddx.com/privacy.html

Use remote MCP over **Streamable HTTP** with a client that supports the standard MCP OAuth connection flow. The `/mcp` endpoint accepts an OAuth bearer token and does not require `cloudflared`, a Cloudflare service token or a local connector. Sign in during browser authorization with the same Google identity used for the StudioDDx subscription or accepted Agency invitation. If your runtime cannot attach remote MCP servers or complete OAuth, explain that limitation accurately.

The customer flow is below. Steps 1–4 are human browser actions — subscription payment and Google consent cannot be completed by an API client or a chat agent. The agent's MCP client joins at step 5.

1. Open the public welcome page, then **Sign in / Get started**.
2. Choose **Individual ($49.95/month)** or **Agency ($199.95/month)** in the console, or redeem an Agency invitation. Stripe confirms subscription state asynchronously through signed webhooks. After Checkout, refresh the console if payment confirmation is still pending. Subscription access requires active or trialing status and an unexpired billing period.
3. After subscription activation, click **Authorize Google Ads**. This is a separate Google OAuth grant for the `https://www.googleapis.com/auth/adwords` scope; it may use a different Google identity from the StudioDDx login.
4. Enter a ten-digit **client** customer ID without hyphens and, if needed, the manager/MCC login ID that routes access to that client. StudioDDx verifies access and rejects selecting an MCC as the target.
5. Use `https://ads-mcp.studioddx.com/mcp` for the account selected in the console. The account must be registered in the subscription and verified with this user's Google authorization. Advanced multi-account clients may add `?customer_id=1234567890`; the OAuth `resource` remains the canonical base `https://ads-mcp.studioddx.com/mcp`. An arbitrary customer ID in the URL does not grant access.
6. Configure this URL using your MCP client's documented remote-server settings, complete its OAuth browser authorization and initialize the MCP session. Discover schemas with `tools/list` before calling tools.
7. Validate the account with the discovered `get_customer_info` tool using the selected customer ID. Report the actual connection state, selected account, available capabilities and any missing setup. Do not claim that reading this page attached the server.

## OAuth discovery

Unauthenticated `/mcp` requests return JSON `401` with a `WWW-Authenticate: Bearer` challenge pointing to protected-resource metadata. Clients discover:

- `https://ads-mcp.studioddx.com/.well-known/oauth-protected-resource/mcp`
- `https://ads-mcp.studioddx.com/.well-known/oauth-authorization-server`

The authorization server supports dynamic public-client registration, authorization codes with S256 PKCE, and refresh tokens. The browser authorization step signs the customer in and asks for consent. The Google Ads OAuth grant is separate and remains in the console. Tokens for the MCP server are not Google Ads access tokens. Never send a Google token to `/mcp`.

Subscription, verified account selection and tenant isolation remain enforced on every MCP request. OAuth does not expand the accounts available under the plan. The console and administration pages require browser sign-in.

## Plans and account selection

| Plan | Google Ads client accounts | Availability |
| --- | --- | --- |
| Individual | One registered client account | $49.95/month |
| Agency | Up to ten registered client accounts total across owner and members | $199.95/month |
| Enterprise | Planned for MCC-wide and larger agency operations | Coming soon; not purchasable |

The Individual plan is internally identified as `standard` for existing Stripe compatibility. Both current plans allow account swaps in the console. Use **Account slot to replace** to replace a client without exceeding the allowance. Removing or replacing a slot immediately denies future MCP requests for the removed client. Different account endpoints use isolated MCP sessions. A downgrade with more registered accounts than the new limit suspends MCP access until excess slots are removed.

Agency members sign in independently and grant their own Google Ads credentials. Membership shares subscription entitlement and account slots; it does not share another person's OAuth token or override Google account permissions. An MCC may serve as a login route to a registered client, but current plans do not permit manager hierarchy traversal, manager account linking or MCC-wide operations.

The endpoint without `customer_id` uses the user's last verified selection. For concurrent workflows, configure one explicit client-specific endpoint per verified account. Do not send another customer's IDs in arguments, resource names or batch operations. Hosted requests are restricted to their selected target. Process-wide account switch, lock, enumeration, monitoring, local-file and task-context tools are unavailable through the hosted gateway.

## Toolset and operating instructions

The hosted service supports reviewed account-scoped tools for campaigns, ad groups, responsive search ads, keywords and negatives, reporting and GAQL, search terms, targeting settings, locations, devices, bid modifiers, schedules, audiences, conversion tracking, budgets and bidding, Smart Bidding data exclusions and seasonality adjustments, assets, Performance Max, Demand Gen, campaign experiments, bulk mutations, change history and supported account billing operations.

The current source-derived hosted reference is at https://studioddx.com/tools.md. The running server's `tools/list` and each schema are authoritative. A published name does not establish permission to mutate a particular Google Ads account. Do not invent tool names, parameters or universal rollback support. Tools excluded from hosted operation may still exist in self-hosted installations.

- Start with read-only analysis and confirm the intended account and date range.
- Read current settings before proposing changes. For writes, state the customer ID, affected resources, requested change and expected effect; obtain authorization unless the user's existing instruction already clearly covers it.
- Use validation or `validate_only` where the discovered schema supports it. Respect batch limits and partial-failure responses. Do not retry a mutation blindly after an ambiguous response.
- After a mutation, read back the relevant account state or change history when practical. Distinguish request submission from confirmed success.
- Preserve account isolation. Each tool call must use the account named in the connection, including nested Google resource names and bulk operations. Account selection and swaps belong in the authenticated console.
- Never ask a customer to paste passwords, Google refresh tokens, developer tokens, client secrets, Stripe keys, Cloudflare cookies or authentication codes into a chat. Complete credential entry and consent in the appropriate secure login interface.

## Management writes and bidding changes

For an existing campaign changing from Maximize Conversion Value to Maximize Conversions, discover `set_campaign_bidding_strategy`. Portfolio creation does not change an existing campaign's standard strategy. Example arguments (replace all IDs with the selected customer and authorized campaigns):

```json
{"customer_id":"1234567890","campaign_ids":["111","222"],"strategy_type":"MAXIMIZE_CONVERSIONS","strategy_options":{},"validate_only":true}
```

An empty options object requests Maximize Conversions without a target CPA. The setter clears any previous target and detaches a portfolio strategy when necessary. A target CPA, if explicitly requested, is `strategy_options.target_cpa_micros` in account-currency micros. After validation succeeds and the user's authorization covers the changes, submit the same arguments with `validate_only:false`. Inspect `applied` and `verified`; an acknowledged change with failed readback must not be blindly retried. Rediscover tools after a server upgrade if your client caches schemas.

- `update_bidding_strategy` updates an existing portfolio's name, targets and supported bid limits. Portfolio type changes require a new portfolio and assignment.
- Smart Bidding adjustments: `create_bidding_data_exclusion`, `list_bidding_data_exclusions`, `get_bidding_data_exclusion_details` and `remove_bidding_data_exclusion` keep anomalous conversion data out of bidding; `create_seasonality_adjustment`, `list_seasonality_adjustments`, `get_seasonality_adjustment_details` and `remove_seasonality_adjustment` model expected conversion-rate shifts around promotions. Both use dated event windows with optional campaign or channel targeting, support `validate_only`, and removals require `confirm_removals:true`. They apply to client accounts, not manager accounts.
- `update_responsive_search_ad` edits content, URL paths, pinning and status with validation and readback.
- `mutate_google_ads_resources` creates, updates or removes reviewed common resources using v26 operation schemas and explicit leaf field masks. It covers campaigns, ad groups, ads, criteria, assets/PMax, conversion configuration/goals, negative lists, user lists and labels. Use dedicated bidding tools for strategy changes. It accepts at most 100 atomic operations, supports `validate_only`, and requires removal confirmation where the safety guard requires it. It reports API submission separately from readback verification.
- `update_user_list` and `remove_audience_targets` support validation-only. Audience performance reports describe ad-group criteria, not PMax signal attribution.
- `add_assets_to_asset_group` links Performance Max assets to an asset group. BUSINESS_NAME and LOGO are campaign-level brand assets in the current Google Ads API, so the tool attaches them to the asset group's campaign automatically and reports `level: "campaign"` for those entries — that is the correct outcome, not a partial failure.
- Bulk writes and offline conversion uploads expose validation-only. Check every returned result and partial-failure detail.
- Account-level enhanced-conversion enrollment and terms acceptance require Google Ads UI action when reported as `UI_ACTION_REQUIRED`; the server does not simulate a successful setting change.

## Campaign experiments

To test changes against live traffic, use the experiment tools. The treatment runs on a system-generated copy of the base campaign, so the base campaign is untouched until promotion:

1. `create_experiment` builds the experiment (status SETUP), a control arm on the existing campaign and a treatment arm, returning the `in_design_campaign` resource name of the treatment copy. Example arguments (replace IDs with the selected customer and an authorized campaign):

```json
{"customer_id":"1234567890","name":"tCPA 40 vs 30 test","base_campaign_id":"111","control_traffic_split_percent":50,"experiment_type":"SEARCH_CUSTOM"}
```

2. Modify the in-design campaign with the regular campaign, ad group and keyword tools. Those edits are the treatment being tested. Nothing serves yet while the experiment is SETUP.
3. `schedule_experiment` starts splitting search traffic between the two arms and waits up to two minutes. A still-forking experiment reports INITIALIZING; poll `list_experiments` later rather than scheduling again.
4. Evaluate with the reporting tools, then choose one outcome: `promote_experiment` applies the treatment to the base campaign (requires `confirm_promote:true` and explicit user approval, since it overwrites the base campaign), `graduate_experiment` keeps the treatment campaign as a standalone campaign (pass the ID of a new budget not currently attached to any campaign, created first), or `end_experiment` stops splitting and returns full traffic to the base campaign.

Every step accepts `validate_only:true` to preflight. If scheduling or promotion fails, `list_experiment_async_errors` returns the underlying errors. Supported experiment types (Search, Display, YouTube, Hotel, Smart Matching and others) are enumerated in the `create_experiment` schema; Performance Max and Demand Gen campaigns are not experimentable this way.

## Troubleshooting

| Result | Action |
| --- | --- |
| 401 with `WWW-Authenticate` | Let the MCP client discover OAuth metadata and complete browser authorization. No cloudflared bridge is required. An HTML login redirect directly from `/mcp` indicates a configuration problem. |
| 401 JSON `{"error":"authentication_required"}` | A human-only console page was fetched without a browser session. Sign-in, subscription checkout, Google Ads authorization and account verification are completed by the customer in a browser, never via an API client. Connect the MCP client at `/mcp` with MCP OAuth instead. |
| 402 `subscription_required` | Open `/console`, activate or repair the subscription, or accept an active Agency invitation. |
| 409 Google authorization / account verification required | Complete Google Ads authorization and verify the desired client in the console. |
| 403 `account_not_entitled` | Verify the client is registered, within the current account limit, and authorized with this user's Google grant. Remove excess slots after a downgrade. |
| 403 tool/argument scope error | Use a permitted hosted tool and the selected client only. MCC-wide operations are not available yet. |
| 409 `account_limit_reached` | Replace or remove a slot in the console; Agency has ten total, not ten per member. |
| Google permission or quota error | Read the tool's error and verify Google account permissions and API quotas. Do not assume a failed request changed anything. |
| 503 gateway unavailable | Retry from the console after checking current subscription/account state. Do not blindly repeat mutations. |

## Example requests after connecting

- Analyze the last 30 days and rank the biggest opportunities without changes.
- Review search terms and propose negative keywords for approval.
- Audit location targeting, device modifiers and conversion measurement.
- Explain campaign changes this week and their likely impact.
- Set up a 50/50 experiment on a chosen campaign, summarize results after it runs, and walk me through promoting or graduating it if it wins.
- Exclude an anomalous conversion period from Smart Bidding, or model a promotion's expected conversion-rate shift with a seasonality adjustment, validating before applying.
- Prepare an optimization plan; execute only the specific changes I authorize.

## One-message connection prompt

> I would like you to connect to StudioDDx's Google Ads API MCP Server. Read https://ads-mcp.studioddx.com/agents.md for connection instructions, help me complete sign-in, subscription and Google Ads authorization, then discover the available tools and verify my selected account. Start with a read-only review; ask before making changes.

## Already-subscribed connection prompt

> Connect to StudioDDx's Google Ads API MCP Server at https://ads-mcp.studioddx.com/mcp using your MCP client's OAuth flow — I will complete the browser sign-in when prompted. My subscription is active and my client account is already verified in the console. Discover the tools, then verify my selected account with `get_customer_info`. Start with a read-only review; ask before making changes.

StudioDDx is independent and is not affiliated with or endorsed by Google. Support: hello@studioddx.com.
