> ## Documentation Index
> Fetch the complete documentation index at: https://vexidata.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Ads

> Connect Google Ads to VexiData to report on, optimize, and manage campaigns with your AI assistant.

Connect Google Ads and your AI assistant can report on campaign performance, run GAQL queries, research keywords, work through Google's optimization recommendations — and, for anyone with write access to the connection, make changes to the account.

## Prerequisites

* A Google account with access to one or more [Google Ads](https://ads.google.com) accounts
* If you reach client accounts through a manager (MCC) account: that manager account's customer ID
* The **Connect sources** capability in your VexiData organization, to connect the platform — Owners and Admins have it by default

## Connect Google Ads

**1. Open the Integrations page**

Go to the [**Integrations**](https://vexidata.com/integrations) page in VexiData and find **Google Ads**.

**2. Sign in with Google**

Click **Connect** and approve Google's consent screen with the account that can access your Ads accounts.

VexiData asks for the `adwords` scope, which covers reading reports and managing campaigns through the Google Ads API. It also requests your basic Google profile and email address — the email address is what names the connection. Keep the Google Ads box ticked on the consent screen: without it, the connection is refused and you need to connect again.

> [!NOTE]
>
> Each Google product connects separately. Connecting Google Ads does not connect [Search Console](https://vexidata.com/docs/integrations/google-search-console.md) or [Google Analytics](https://vexidata.com/docs/integrations/google-analytics.md) — each has its own consent flow.

**3. Pick defaults — and a manager account if you use one**

Click the new connection's card to open its page. In the **Settings** card:

* Check the default **customer accounts** the AI should work with when you don't name one.
* If you access client accounts through a manager (MCC) account, enter the manager account's customer ID in **Manager (MCC) customer ID**. Google requires it on requests made through a manager account.

Click **Save** to apply your changes.

## Managing the connection

To connect another Google login, click **Add account** on the Google Ads card on the [**Integrations**](https://vexidata.com/integrations) page. Each login becomes its own connection, and the one with the **Primary** badge is the primary, which tools use when a request doesn't name a connection.

Click a connection's card to open its page. It has **Connection details**, **Settings**, and **Connection** cards, plus an [**Access**](https://vexidata.com/docs/workspaces/invite-team-members.md#access-to-a-data-source) section for choosing who can use the connection. From there you can:

* **Set default customer accounts** — in **Settings**, check the accounts the AI uses by default and click **Save**.
* **Set the manager (MCC) customer ID** — stored per connection, in the same **Settings** card.
* **Make primary** — in **Connection**, make this connection the primary one. The button is hidden on the connection that is already primary.
* **Reconnect** — appears in **Connection** only when Google access has expired (the card shows **Reconnect required**). It runs the consent flow again; sign in with the same login to refresh this connection. A different login is added as a separate connection.
* **Disconnect** — in **Connection**, remove the connection. AI tools stop working for it immediately.

## What the AI can do

| Tool | What it does | Access |
| - | - | - |
| `google_ads_list_accessible_customers` | Lists the customer accounts the connected Google login can access. | Read |
| `google_ads_account_hierarchy` | Maps a manager account's tree of client accounts. | Read |
| `google_ads_account_summary` | Spend, clicks, conversions, CTR, CPA and ROAS for one account, in the account's own currency. | Read |
| `google_ads_run_gaql` | Runs a Google Ads Query Language (GAQL) query against any report. | Read |
| `google_ads_list_conversion_actions` | Lists the account's conversion actions and their settings. | Read |
| `google_ads_list_recommendations` | Lists Google's optimization recommendations for the account. | Read |
| `google_ads_apply_recommendation` | Applies an optimization recommendation. | Write |
| `google_ads_dismiss_recommendation` | Dismisses an optimization recommendation. | Write |
| `google_ads_generate_keyword_ideas` | Generates keyword ideas with search volume and competition data. | Read |
| `google_ads_keyword_historical_metrics` | Returns historical search metrics for specific keywords. | Read |
| `google_ads_mutate` | Creates or updates campaigns, ad groups, ads, budgets, and other resources. | Write |
| `google_ads_mutate_delete` | Removes resources from the account. | Destructive |
| `google_ads_user_list_mutate` | Creates or updates remarketing user lists. You can't add members through VexiData: use **Audience manager** in Google Ads. | Write |
| `google_ads_custom_audience_mutate` | Creates or updates custom audiences. | Write |
| `google_ads_upload_image_asset` | Creates an image asset for use in ads from a public `https://` image URL (up to 10 MB). Files can't be uploaded directly — host the image first. | Write |

> [!WARNING]
>
> Write tools change a live ad account — and changes to budgets, bids, or
> campaign status affect real spend. They need **Write** access on the
> connection (by default, Owners and Admins), and the AI is instructed to get
> your explicit approval before it runs a destructive removal through
> `google_ads_mutate_delete`.

> [!NOTE]
>
> The Google Ads API expresses money in **micros**: 1,000,000 micros equal one
> unit of the account currency, so a `costMicros` of `2500000` is 2.50. The
> AI converts these when reporting, but you'll see raw micros in GAQL results —
> the GAQL field is `cost_micros`, the JSON key that comes back `costMicros`.

## Troubleshooting

> [accordion] Connection expired or tools return authorization errors
>
> Google access expires when the account password changes, when access is revoked from the Google account's security settings, or when consent lapses. Open the connection from the **Integrations** page — its card shows **Reconnect required** — and click **Reconnect** in the **Connection** card to run the consent flow again.

> [accordion] Customer not found or permission denied on a client account
>
> When you reach client accounts through a manager (MCC) account, Google requires the manager's customer ID on every request. Open the connection's page and, in the **Settings** card, set **Manager (MCC) customer ID** to your manager account's ID, then click **Save**.

> [accordion] An account is missing from the list
>
> VexiData sees exactly the accounts the connected Google login can access. Check the account appears at [ads.google.com](https://ads.google.com) under that login, or ask an administrator to grant access — then open the connection's page again, which loads the account list live from Google.

> [accordion] Tools don't appear in my AI client
>
> Tools register as soon as the platform is connected, but some clients cache the tool list. Reload or reconnect the VexiData connector in your AI client.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.