---
title: "Google Ads MCP: setup, eCommerce and B2B leads"
description: "Learn how to connect Google Ads MCP and use account data to analyze eCommerce sales and B2B leads, with practical examples and advanced guides."
url: "https://cookingmetrics.com/blog/mcp-google-ads/"
markdown_url: "https://cookingmetrics.com/blog/mcp-google-ads.md"
lang: "en"
date_published: "2026-11-12"
author: "Martín Garay"
author_url: "https://cookingmetrics.com/about-martin-garay/"
publisher: "CookingMetrics"
publisher_url: "https://cookingmetrics.com/"
keywords: ["Google Ads", "MCP"]
citation_apa7: "Garay, M. (2026, November 12). *Google Ads MCP: setup, eCommerce and B2B leads*. CookingMetrics. https://cookingmetrics.com/blog/mcp-google-ads/"
references_apa7:
  - "Google for Developers. (n.d.). *Google Ads MCP server: Developer integration guide*. https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server"
  - "Google Ads, GitHub. (n.d.). *Google Ads MCP Server*. https://github.com/googleads/google-ads-mcp"
  - "Google Cloud. (n.d.). *Set up ADC for a local development environment*. https://docs.cloud.google.com/docs/authentication/set-up-adc-local-dev-environment"
  - "Google for Developers. (n.d.). *Set up a Google API Console project*. https://developers.google.com/google-ads/api/docs/oauth/cloud-project"
  - "Google Cloud Platform Console Help. (n.d.). *Manage OAuth Clients*. https://support.google.com/cloud/answer/6158849"
  - "Python Packaging Authority. (n.d.). *pipx documentation*. https://pipx.pypa.io/"
  - "Google Ads Help. (n.d.). *About the search terms report*. https://support.google.com/google-ads/answer/2472708?hl=en-en"
  - "Google Ads Help. (n.d.). *About qualified leads and converted leads*. https://support.google.com/google-ads/answer/11459091?hl=es"
  - "Google Ads Help. (n.d.). *About conversion lag reporting*. https://support.google.com/google-ads/answer/9347141?hl=es"
  - "Google for Developers. (n.d.). *Google Ads Query Language*. https://developers.google.com/google-ads/api/docs/query/overview"
  - "Google for Developers. (n.d.). *Campaign resource fields (v26)*. https://developers.google.com/google-ads/api/fields/v26/campaign"
  - "Google Ads Help. (n.d.). *About primary and secondary conversion actions*. https://support.google.com/google-ads/answer/11461796?hl=en"
  - "Google for Developers. (n.d.). *API call structure*. https://developers.google.com/google-ads/api/docs/concepts/call-structure"
  - "Google for Developers. (n.d.). *Reports in the Google Ads UI*. https://developers.google.com/google-ads/api/docs/reporting/uireports"
---

# Google Ads MCP: setup, eCommerce and B2B leads

> Learn how to connect Google Ads MCP and use account data to analyze eCommerce sales and B2B leads, with practical examples and advanced guides.

- **Author:** [Martín Garay](https://cookingmetrics.com/about-martin-garay/) · Founder of CookingMetrics
- **Published:** November 12, 2026
- **Topics:** Google Ads, MCP
- **Web version:** https://cookingmetrics.com/blog/mcp-google-ads/

## How to cite this article (APA, 7th edition)

Garay, M. (2026, November 12). *Google Ads MCP: setup, eCommerce and B2B leads*. CookingMetrics. https://cookingmetrics.com/blog/mcp-google-ads/

In-text citation: (Garay, 2026)

## References

- Google for Developers. (n.d.). *Google Ads MCP server: Developer integration guide*. https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server
  In-text citation: (Google for Developers, n.d.)
- Google Ads, GitHub. (n.d.). *Google Ads MCP Server*. https://github.com/googleads/google-ads-mcp
  In-text citation: (Google Ads, GitHub, n.d.)
- Google Cloud. (n.d.). *Set up ADC for a local development environment*. https://docs.cloud.google.com/docs/authentication/set-up-adc-local-dev-environment
  In-text citation: (Google Cloud, n.d.)
- Google for Developers. (n.d.). *Set up a Google API Console project*. https://developers.google.com/google-ads/api/docs/oauth/cloud-project
  In-text citation: (Google for Developers, n.d.)
- Google Cloud Platform Console Help. (n.d.). *Manage OAuth Clients*. https://support.google.com/cloud/answer/6158849
  In-text citation: (Google Cloud Platform Console Help, n.d.)
- Python Packaging Authority. (n.d.). *pipx documentation*. https://pipx.pypa.io/
  In-text citation: (Python Packaging Authority, n.d.)
- Google Ads Help. (n.d.). *About the search terms report*. https://support.google.com/google-ads/answer/2472708?hl=en-en
  In-text citation: (Google Ads Help, n.d.)
- Google Ads Help. (n.d.). *About qualified leads and converted leads*. https://support.google.com/google-ads/answer/11459091?hl=es
  In-text citation: (Google Ads Help, n.d.)
- Google Ads Help. (n.d.). *About conversion lag reporting*. https://support.google.com/google-ads/answer/9347141?hl=es
  In-text citation: (Google Ads Help, n.d.)
- Google for Developers. (n.d.). *Google Ads Query Language*. https://developers.google.com/google-ads/api/docs/query/overview
  In-text citation: (Google for Developers, n.d.)
- Google for Developers. (n.d.). *Campaign resource fields (v26)*. https://developers.google.com/google-ads/api/fields/v26/campaign
  In-text citation: (Google for Developers, n.d.)
- Google Ads Help. (n.d.). *About primary and secondary conversion actions*. https://support.google.com/google-ads/answer/11461796?hl=en
  In-text citation: (Google Ads Help, n.d.)
- Google for Developers. (n.d.). *API call structure*. https://developers.google.com/google-ads/api/docs/concepts/call-structure
  In-text citation: (Google for Developers, n.d.)
- Google for Developers. (n.d.). *Reports in the Google Ads UI*. https://developers.google.com/google-ads/api/docs/reporting/uireports
  In-text citation: (Google for Developers, n.d.)

---

Imagine you run an eCommerce business. The week is starting, and you want to understand why advertising spend increased while sales failed to keep up. Your first question might be: “Which campaigns explain the difference, and what should we review first?” With **Google Ads MCP**, you can ask an AI assistant connected to your account data.

Google documents an MCP server that connects compatible assistants to the Google Ads API. MCP stands for *Model Context Protocol*: a protocol that lets an assistant query external tools and data to build its response. The practical development is the ability to discuss your account using information retrieved from it. [Official Google Ads MCP guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server).

For a business, this opens up a different way of working: start with the commercial question, ask for evidence, and explore the areas where a problem appears. The initial connection requires technical configuration; subsequent questions can be much more approachable.

## In summary

- You can use a connected assistant to explore Google Ads performance and prepare analyses that you then check against the account.
- In eCommerce, distinguish purchases from other conversions; in B2B, distinguish inquiries from qualified opportunities.
- To get started, we suggest a connection restricted to reading data and a check using a known account and period.
- The version and enabled tools matter: the guide and repository differ in ways we explain below.

## What changes when your assistant can query the account

Think of it as a conversation you can refine. First, ask what changed. Then request a breakdown by campaign. Finally, decide what to review with your team.

For example, when sales decline, a useful response should show how much spend changed, what happened to attributed purchases, and how much each campaign contributed to the difference. If the assistant offers an explanation, it should distinguish that explanation from the data it actually retrieved.

**The quality of the analysis depends on both the connection and the question.** “How is the account doing?” leaves many decisions open. A query that identifies the business, period, relevant conversion, and comparison criteria is easier to verify.

The following are **hypothetical usage scenarios**, not client case studies or results measured by CookingMetrics.

## Imagine you run an eCommerce business: now you can investigate what happened to sales

You run a home goods store. You sell products at different price points and manage several campaigns. You want to understand where to focus this week's review.

A first query might be:

> For the account I specify, compare the latest 28 complete days whose end is at least 24 hours in the past with the preceding 28 days. Use the account's time zone. Show spend, attributed purchases, the value of those purchases, and ROAS by campaign. Identify which campaigns explain most of the change. State which conversion actions you treated as purchases and flag any data you could not retrieve.

**ROAS** relates the value attributed to conversions to advertising spend. To interpret it in this example, first check that the value represents purchases and is recorded correctly. A good ROAS is not enough to establish profit: costs, margins, and returns still need to be considered.

After that first response, you could continue:

> Within the campaigns with the largest declines, compare performance by device where the data allows it. Separate observed changes from your hypotheses. Propose three checks before recommending a change.

The conversation can become a work plan: check measurement, review the mobile purchase experience, or investigate a promotion that ended. **These are proposed checks**, not causes proven by the assistant.

A completed period does not necessarily have all its conversions recorded. Google explains that the delay between an interaction and a conversion can make CPA appear higher or ROAS lower. Waiting 24 hours avoids comparing days that are too recent, but it does not eliminate that delay. [Conversion lag in Google Ads](https://support.google.com/google-ads/answer/9347141?hl=es).


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/mcp-google-ads/#bloque-1]


## If you sell B2B services, the question is which inquiries become opportunities

### A consultancy that implements business software

Imagine your company sells ERP implementation services to other businesses. One campaign generates many form submissions, but the sales team reports that several inquiries come from students or people seeking free support.

You could start with:

> Analyze this account's conversion actions separately. Show which ones represent submitted forms and which, if any, represent qualified leads or sales opportunities. Compare the volume and cost per outcome for each campaign. If the account only measures forms, state that this is not enough to assess lead quality.

The distinction matters: a submitted form shows interest, but it does not yet establish that there is a business with a need, budget, and fit for the service.

Google Ads supports **qualified lead and converted lead** goals, linked to stages in the sales process and offline conversion data. To analyze them, that information must actually be recorded. Connecting MCP does not, by itself, bring in CRM data. [Google documentation on qualified and converted leads](https://support.google.com/google-ads/answer/11459091?hl=es).

If those data exist, you can investigate which campaigns generate opportunities at more advanced stages. If they are missing, the first process improvement would be to agree on what the sales team considers qualified and how to record that signal.

### An industrial maintenance company

Now imagine a company that maintains equipment for factories. It wants to reach procurement and maintenance managers, but also receives home repair inquiries and job searches.

A useful question would be:

> Review the available search terms for the selected campaigns. Group them by likely intent: business service procurement, home repairs, employment, or general information. Show examples, spend, and available conversions. Flag ambiguous terms and prepare candidates for human review without applying exclusions.

This classification would help review relevance; it would not prove who performed each search. An isolated word can have several meanings. Google also omits some low-activity terms for privacy, so a term's absence from the report does not prove that nobody searched for it. [Scope of the search terms report](https://support.google.com/google-ads/answer/2472708?hl=en-en).

The next step could be to compare the findings with the inquiries received by sales. That would help determine whether to adjust messaging, clarify which businesses the service supports, or review terms that might be excluded.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/mcp-google-ads/#bloque-2]


## How to connect Google Ads MCP, step by step

For an initial trial, we suggest the local route: the server runs on your computer, and your AI application communicates with it. If you do not regularly work with Google Cloud or a terminal, this is the part to prepare with technical help.

### 1. Prepare access to Google Cloud and Google Ads

You need a Google identity authorized for the account you will query and a Google Cloud project. In that project, enable the Google Ads API and check its access level: for real accounts, make sure it is not limited to testing. The guide explains how to request Explorer access. [Project setup for the Google Ads API](https://developers.google.com/google-ads/api/docs/oauth/cloud-project).

The current MCP guide states that recent versions use `GOOGLE_PROJECT_ID` and no longer require the old developer token. If you follow an earlier tutorial, check it against the version you intend to install. [Current MCP requirements](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server).

### 2. Prepare the tools and authorize your user

For this walkthrough, you need Python, Git, `pipx`, the Google Cloud CLI (`gcloud`), and an AI application compatible with local MCP servers. `pipx` runs Python applications in isolated environments. [pipx documentation](https://pipx.pypa.io/).

Configure the project's OAuth consent settings and create an OAuth client for a desktop application. Download its JSON to a private folder; if the application is in testing mode, add the account you will use as a test user. OAuth is the mechanism that opens Google's sign-in flow and requests authorization. [Creating OAuth clients](https://support.google.com/cloud/answer/6158849).

Using that file, generate local ADC credentials—the credentials the program will use—with this command. Replace the example path with the actual location of the OAuth client JSON:

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

Sign in with the user authorized for Google Ads and save the **ADC file path** reported by the command. This is a different file from the OAuth client JSON. Google documents the use of a custom client and explicit scopes to authorize services outside Google Cloud. The ADC file contains a refresh token: keep it out of repositories and conversations. [Local ADC setup](https://docs.cloud.google.com/docs/authentication/set-up-adc-local-dev-environment).

### 3. Restrict the first installation to queries

When we consulted the sources on **November 11, 2026**, we found a difference: the guide describes a read-only MCP, while the repository lists tools for creating advertising assets and managing labels. Do not assume that every installation has the same permissions.

The repository allows you to disable those categories. Create a `tools_config.yaml` file with this content and keep its absolute path:

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

The `GOOGLE_ADS_MCP_TOOLS_CONFIG` variable specifies which file to load. [Tool configuration in the official repository](https://github.com/googleads/google-ads-mcp#configuring-and-namespacing-tools).

### 4. Add the server to your AI application

This example combines Google's documented local configuration with the restriction above. The file location and accepted format depend on your application; use it with clients that support `mcpServers` and local `stdio` transport:

```
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "pipx",
      "args": [
        "run",
        "--spec",
        "git+https://github.com/googleads/google-ads-mcp.git",
        "google-ads-mcp"
      ],
      "env": {
        "GOOGLE_PROJECT_ID": "YOUR_PROJECT_ID",
        "GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/adc.json",
        "GOOGLE_ADS_MCP_TOOLS_CONFIG": "/absolute/path/tools_config.yaml"
      }
    }
  }
}
```

Replace the project and both paths. If you access accounts through a manager account, also set `GOOGLE_ADS_LOGIN_CUSTOMER_ID` to its identifier; distinguish that manager account from the advertiser account you want to analyze. [Official local configuration](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server).

The example downloads code from the repository. For stable use, we recommend that whoever maintains the connection pins a tested revision and controls updates.

### 5. Check the connection before requesting a diagnosis

Restart or reload MCP servers in your application. Check that the enabled tools are for account discovery, searches, and metadata.

Then try:

> List the accounts I can access directly. Before querying metrics, ask me to select an account. Confirm its identifier, currency, and time zone. Do not combine information from other advertisers.

If a manager account appears, identify the authorized client account before continuing. Then request spend for one campaign over a known period and compare it with Google Ads using the same dates, filters, and currency.

If the server does not start, check that the application can find `pipx` and that the configured paths exist. If access fails, check the authorized identity, permissions, scopes, and project access level before trying to analyze results.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/mcp-google-ads/#bloque-3]


## How to get started without losing sight of the business

Choose a question you can verify: which campaigns explain a change in spend, how attributed purchases changed, or what is being counted as a lead.

Ask every response to include **the account, period, metrics used, missing data, and hypotheses**. If you need margin, inventory, or opportunity progression, first identify where those data reside and how to incorporate them with authorization. The assistant receives the data it queries: also review which business information you share with the AI provider. [Repository considerations](https://github.com/googleads/google-ads-mcp#notes).

At [CookingMetrics](https://cookingmetrics.com/), we suggest starting with a specific decision and the quality of its measurement. For your eCommerce business, that might mean understanding what explains a decline in purchases. For your B2B company, it might mean identifying which campaigns generate opportunities that sales can actually pursue.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/mcp-google-ads/#bloque-4]


## Related reading

See also <span data-cm-event="cm_blog_article_click" data-cm-link="MCP de Google Analytics">[Google Analytics MCP: what it does and how to connect it to GA4](https://cookingmetrics.com/blog/mcp-google-analytics-ga4/)</span>.

To see what changes when an AI agent visits your own site, read what we learned when [we reviewed our site for AI agents](https://cookingmetrics.com/blog/medimos-nuestro-sitio-agent-ready/). For more on catalog information, see the [guide to Merchant Center conversational attributes](https://cookingmetrics.com/blog/atributos-conversacionales-merchant-center/). If you need to review URLs from a Google Analytics report, [GA4 Page Links](https://cookingmetrics.com/blog/ga4-page-links/) is a separate tool that helps open them on the correct domain; it is not part of Google Ads MCP.

## Frequently asked questions

### Does MCP manage campaigns automatically?

This guide proposes enabling queries only. Do not interpret an assistant's recommendation as an executed change. Capabilities depend on the version and tools you enable, which is why we include an explicit read-only configuration.

### Can it tell me which leads became sales?

Only if it has data that can answer that question. If Google Ads only records submitted forms, the assistant cannot infer which ones became customers. You need to incorporate sales stages through an appropriate integration or analyze another authorized source.

### Is a local installation the only option?

Google also documents remote deployment on Cloud Run. It requires hosting, authentication, and a compatible client. To share it with a team, follow the deployment section of the [official guide](https://developers.google.com/google-ads/api/docs/developer-toolkit/mcp-server) with technical support.

---

## About the author

**[Martín Garay](https://cookingmetrics.com/about-martin-garay/)** — Founder of CookingMetrics

I'm Martín Garay, founder and Martech Advisor at CookingMetrics and Chair of the Technology Committee at CACE, Argentina's ecommerce chamber. For more than 20 years I've worked in Analytics, development, technical SEO and ecommerce: I implement measurement, find where it breaks and turn it into information you can act on.

### My work at CACE, Argentina's ecommerce chamber

- **Chair of the Technology Committee** (SINCE AUGUST 2025): I set the committee's agenda together with Gabriel Topola, vice-chair. We look at the platforms and tools an online business needs to grow: CMS, integrations, customer service and omnichannel operations.
- **Curating the technical forum** (IT CAMP · ECOMMERCE DAY ARGENTINA): With CACE's Events team I put together the IT Camp programme: talks for engineering and development teams on platform architecture, code and good practice, given by speakers who do the implementation work.
- **Marketing and Data Analytics committees** (SINCE 2016): I started in the Marketing committee and helped create the Data Analytics committee. I gave Google Analytics webinars, including the migration to GA4, and worked on the Google Analytics implementation for Hot Sale and Cyber Monday.
- **Ecommerce metrics dashboard** (FOR MEMBERS): With the Data Analytics committee and the CACE Community team we built a dashboard in Google Analytics and Looker Studio so each member can check the key indicators of their own store.

### Talks

- [From SEO to GEO: what it takes for a brand to be cited by an answer engine](https://www.youtube.com/watch?v=mlyjuSBdMzI) — ECOMMERCE DAY ARGENTINA 2026 · IT CAMP · AUGUST 27, 2026 · BUENOS AIRES CONVENTION CENTER
- [SEO for AI: how to prepare a brand to show up in ChatGPT and Google's AI overviews](https://www.youtube.com/watch?v=4dI7jqnLg-M) — AI IN LATAM 2025 · BUENOS AIRES · OVER 3,500 ATTENDEES AND 100 SPEAKERS, PER THE ORGANIZERS

### Profiles and links

- [Full profile](https://cookingmetrics.com/about-martin-garay/)
- [LinkedIn](https://www.linkedin.com/in/seospecialistmartingaray/)
- [Instagram](https://www.instagram.com/garaymartin/)
- [YouTube](https://www.youtube.com/@MartinGaray)
- [martingaray.com.ar](https://www.martingaray.com.ar/)
- [Chair of the Technology Committee at CACE, Argentina's ecommerce chamber](https://cace.org.ar/pages/comision-de-tecnologia?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)
- [Ecommerce metrics dashboard, free for CACE members](https://cace.org.ar/pages/dashboard-de-metricas?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)

---

## About CookingMetrics

CookingMetrics provides Google Analytics consulting, measurement implementation and SEO. Founder Martín Garay brings more than 20 years of experience in Analytics, development and ecommerce. The work connects data with business decisions.

### Services

- **[Google Analytics audit](https://cookingmetrics.com/data-analytics-consulting/)**: Do purchases or revenue differ from your store? We review your measurement and deliver a correction plan in 10 business days. [See the audit scope](https://cookingmetrics.com/data-analytics-consulting/).
- **[Google Tag Manager](https://cookingmetrics.com/services/gtm/)**: Did events stop being tracked after a website change? We review tags, triggers and versions to find duplicates or missing data. [Ask about Google Tag Manager audits and implementation](https://cookingmetrics.com/services/gtm/).
- **[Server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/)**: We assess how to send data from your server, respect consent and prevent duplication. [What's included in server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/).
- **[Technical SEO](https://cookingmetrics.com/services/technical-seo/)**: Have you migrated your site, or are pages missing from Google? We review crawling, indexing, structure and performance. [How we approach technical SEO](https://cookingmetrics.com/services/technical-seo/).
- **[SEO for AI search (GEO)](https://cookingmetrics.com/services/seo-ai-geo/)**: We review whether search engines and assistants can access your pages and understand their content. [What we can improve for AI search](https://cookingmetrics.com/services/seo-ai-geo/).

### Solutions

- **[Google Analytics self-check](https://cookingmetrics.com/google-analytics-self-check/)** (Status: Available)
- **[GA4 Report Generator](https://cookingmetrics.com/product/ga4-report-generator/)** (Status: Beta): A tool in beta that already generates Google Analytics reports. Ask about available features and the scope for your project. [Explore GA4 Report Generator](https://cookingmetrics.com/product/ga4-report-generator/).
- **[IndexNow Connect](https://cookingmetrics.com/product/indexnow-connect/)** (Status: Available for Tiendanube): Notifies search engines participating in IndexNow of new, updated or deleted URLs. [How IndexNow Connect works](https://cookingmetrics.com/product/indexnow-connect/).
- **[AI SEO Analysis](https://cookingmetrics.com/product/ai-seo-analysis/)** (Status: In development): *Coming soon.* An automated audit of how AI assistants and search engines access and use your content. [Learn about AI SEO Analysis](https://cookingmetrics.com/product/ai-seo-analysis/).

**Let's talk about your measurement:** [Book a call](https://cookingmetrics.com/about-martin-garay/) · [CookingMetrics](https://cookingmetrics.com/)
