# Google Ads + PostHog Integrations: Connect with Zapier MCP
> zapier.com/apps/google-ads/integrations/posthog
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Google Ads and PostHog in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `google-ads` and `posthog`, then `enable_zapier_action`. If Google Ads or PostHog isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: once Capture Event is enabled, call `posthog_capture_event`. Each operation below lists its MCP tool name.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "posthog", owner: "me" });

const { data } = await zapier.runAction({
  app: "posthog",
  actionType: "write",
  action: "event_capture",
  connection: connection.id,
  inputs: {
    organization_id: "", // Organization
    project_id: "", // Project
    name: "", // Event Name
    distinct_id: "", // User PostHog Distinct ID
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action posthog write event_capture \
  --inputs '{"organization_id":"","project_id":"","name":"","distinct_id":""}'
```

## Google Ads

### Identity
Google Ads (formerly Google AdWords) is an online advertising platform developed by Google, where advertisers pay to display brief advertisements, service offerings, product listings, video content, and generate mobile application installs within the Google ad network to web users.

- App slug: google-ads
- Operations published here: 16 (2 events, 9 functions, 4 queries, 1 search-or-write action)

### Authentication
Zapier connects to Google Ads via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection google-ads
```

### Capabilities

#### Events (2)

Events fire when something happens in Google Ads. Use them to start a run.

##### New Campaign
Triggers whenever a new campaign is created in Google Ads.

- Type: read · Key: `new_campaign`
- Requires: mainAccountId
- MCP tool: `google_ads_new_campaign` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "read", action: "new_campaign" })`
- CLI: `npx zapier-sdk run-action google-ads read new_campaign`

##### New Lead Form Entry
Triggers whenever a new lead is created from a Lead Form Extension.

- Type: read · Key: `new_lead_form_entry_polling`
- Requires: mainAccountId, leadFormId
- Optional: managedAccountId, conversions_copy
- MCP tool: `google_ads_new_lead_form_entry` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "read", action: "new_lead_form_entry_polling" })`
- CLI: `npx zapier-sdk run-action google-ads read new_lead_form_entry_polling`

#### Functions (9)

Functions change something in Google Ads.

##### Add Contact to Customer List With Email
Adds a contact to a customer list using their email address. This uses the Data Manager API, which is being beta tested by Google.

- Type: write · Key: `add_email_to_customer_list_v3`
- Requires: mainAccountId, customer_list_id, emailAddress
- Optional: managedAccountId, adUserData, adPersonalization, tosHelpText
- MCP tool: `google_ads_add_contact_to_customer_list_with_email` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "add_email_to_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write add_email_to_customer_list_v3`

##### Add Contact to Customer List
Adds a contact to a customer list. This uses the Data Manager API, which is being beta tested by Google.

- Type: write · Key: `add_to_customer_list_v3`
- Requires: mainAccountId, customer_list_id, customer_identifier
- Optional: managedAccountId, adUserData, adPersonalization, tosHelpText
- MCP tool: `google_ads_add_contact_to_customer_list` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "add_to_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write add_to_customer_list_v3`

##### Create Customer List (Data Manager)
Creates a Customer Match customer list using the Data Manager API.

- Type: write · Key: `create_customer_list_v3`
- Requires: mainAccountId, name
- Optional: managedAccountId, description, membershipDurationDays
- MCP tool: `google_ads_create_customer_list_data_manager` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "create_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write create_customer_list_v3`

##### Create Report
Creates a report on specified data from your campaigns/ads.

- Type: write · Key: `create_report`
- Requires: mainAccountId, resource, datePreset
- Optional: managedAccountId, limit
- MCP tool: `google_ads_create_report` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "create_report" })`
- CLI: `npx zapier-sdk run-action google-ads write create_report`

##### Delete Customer List (Data Manager)
Deletes a Customer Match customer list using the Data Manager API.

- Type: write · Key: `delete_customer_list_v3`
- Requires: mainAccountId, customer_list_id
- Optional: managedAccountId
- MCP tool: `google_ads_delete_customer_list_data_manager` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "delete_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write delete_customer_list_v3`

##### Remove Contact From Customer List
Removes a contact from a customer list. This uses the Data Manager API, which is being beta tested by Google.

- Type: write · Key: `remove_from_customer_list_v3`
- Requires: mainAccountId, customer_list_id, customer_identifier
- Optional: managedAccountId
- MCP tool: `google_ads_remove_contact_from_customer_list` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "remove_from_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write remove_from_customer_list_v3`

##### Send Offline Conversion
Sends events from your customer systems (PoS, CRM, email service provider, etc) to connect Google Ad campaigns to offline activity and business impact.

- Type: write · Key: `send_offline_conversion_v2`
- Requires: mainAccountId, identifier_source, name, time
- Optional: double_opt_message, managedAccountId, multiple_identifier_note, value, currency
- MCP tool: `google_ads_send_offline_conversion` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "send_offline_conversion_v2" })`
- CLI: `npx zapier-sdk run-action google-ads write send_offline_conversion_v2`

##### Set Campaign Status
Sets the status of a Google Ads campaign.

- Type: write · Key: `set_campaign_status`
- Requires: mainAccountId, status
- MCP tool: `google_ads_set_campaign_status` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "set_campaign_status" })`
- CLI: `npx zapier-sdk run-action google-ads write set_campaign_status`

##### Update Customer List (Data Manager)
Updates a Customer Match customer list using the Data Manager API.

- Type: write · Key: `update_customer_list_v3`
- Requires: mainAccountId, customer_list_id
- Optional: managedAccountId, name, description, membershipDurationDays
- MCP tool: `google_ads_update_customer_list_data_manager` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "write", action: "update_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads write update_customer_list_v3`

#### Queries (4)

Queries read from Google Ads and return data. They change nothing.

##### Find Campaign by Id
Finds a Google Ads Campaign whose id matches the provided input.

- Type: search · Key: `find_campaign_by_id`
- Requires: mainAccountId
- MCP tool: `google_ads_find_campaign_by_id` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "search", action: "find_campaign_by_id" })`
- CLI: `npx zapier-sdk run-action google-ads search find_campaign_by_id`

##### Find Campaign by Name
Finds a Google Ads Campaign whose names matches the provided input.

- Type: search · Key: `find_campaign_by_name`
- Requires: mainAccountId
- MCP tool: `google_ads_find_campaign_by_name` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "search", action: "find_campaign_by_name" })`
- CLI: `npx zapier-sdk run-action google-ads search find_campaign_by_name`

##### Find Customer List (Data Manager)
Finds a Data Manager customer list by name.

- Type: search · Key: `find_customer_list_v3`
- Requires: mainAccountId, name
- Optional: managedAccountId
- MCP tool: `google_ads_find_customer_list_data_manager` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "search", action: "find_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads search find_customer_list_v3`

##### Get Request Status (Data Manager)
Gets the processing result of data sent through the Data Manager API, including why any records were rejected. Can wait until Google finishes processing.

- Type: search · Key: `get_request_status_v3`
- Requires: mainAccountId, requestId
- Optional: waitForFinalStatus
- MCP tool: `google_ads_get_request_status_data_manager` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-ads", actionType: "search", action: "get_request_status_v3" })`
- CLI: `npx zapier-sdk run-action google-ads search get_request_status_v3`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Customer List (Data Manager)
Finds a customer list by name. Optionally creates a new customer list.

- Type: search_or_write · Key: `find_customer_list_v3`
- Requires: mainAccountId, name
- Optional: managedAccountId, description, membershipDurationDays
- SDK: `runAction({ app: "google-ads", actionType: "search_or_write", action: "find_customer_list_v3" })`
- CLI: `npx zapier-sdk run-action google-ads search_or_write find_customer_list_v3`

## PostHog

### Identity
PostHog is the single platform for building successful products. Open-source product analytics, web analytics, session replay, feature flags, surveys, and more.

- App slug: posthog
- Operations published here: 2 (1 event, 1 function)

### Authentication
Zapier connects to PostHog via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection posthog
```

### Capabilities

#### Events (1)

Events fire when something happens in PostHog. Use them to start a run.

##### Action Performed
Triggers when an action is performed by a user.

- Type: read · Key: `action_performed`
- Requires: organization_id, project_id, action_id
- MCP tool: `posthog_action_performed` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "posthog", actionType: "read", action: "action_performed" })`
- CLI: `npx zapier-sdk run-action posthog read action_performed`

#### Functions (1)

Functions change something in PostHog.

##### Capture Event
Captures an event.

- Type: write · Key: `event_capture`
- Requires: organization_id, project_id, name, distinct_id
- Optional: properties, timestamp
- MCP tool: `posthog_capture_event` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "posthog", actionType: "write", action: "event_capture" })`
- CLI: `npx zapier-sdk run-action posthog write event_capture`

## Frequently asked questions about automating with Google Ads and PostHog

### How do I connect my Google Ads account to PostHog?

To connect your Google Ads account to PostHog, you can use our integration feature. First, navigate to the integrations page in your PostHog account. From there, select Google Ads and follow the authentication steps. Ensure you have admin access to both platforms for a seamless connection.

### What kind of triggers are available when integrating Google Ads with PostHog?

When integrating Google Ads with PostHog, you can utilize triggers such as capturing when a new ad is clicked, tracking conversions from specific ads, or identifying spend thresholds. These triggers allow you to automate actions within PostHog based on the performance metrics from your Google Ads campaigns.

### Can I track conversion events in PostHog using data from Google Ads?

Yes, you can track conversion events in PostHog by setting up specific triggers that capture conversion data from your Google Ads campaigns. Once configured, these conversions will appear as events within your PostHog dashboard for further analysis.

### How are data discrepancies handled between Google Ads and PostHog?

We take careful measures to minimize data discrepancies between Google Ads and PostHog through proper synchronization and periodic updates. Our integration includes reconciliation features that help identify and address any mismatches in reported metrics.

### Is it possible to automate bid adjustments in Google Ads using insights from PostHog?

Yes, it's possible to automate bid adjustments in Google Ads by applying insights gathered from user behavior analysis in PostHog. You can create actions based on specific conditions or thresholds defined within your analytics, which then trigger automated bid changes in your campaigns.

### Can I visualize the performance of my ads within the PostHog platform?

Certainly, once your integration is set up, performance metrics such as impressions, clicks, and conversions can be visualized directly within the PostHog platform. You can create custom dashboards that reflect real-time analytics pulled from your active ad campaigns.

### What should I do if I encounter issues while setting up the integration between Google Ads and PostHog?

If you encounter any issues during setup, please check our support documentation first for troubleshooting tips related to common problems like authentication failures or data sync delays. For persistent issues not covered there, reach out directly through our customer support channels for personalized assistance.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Google Ads integrations: zapier.com/apps/google-ads/integrations.md
- PostHog integrations: zapier.com/apps/posthog/integrations.md
- Full page: zapier.com/apps/google-ads/integrations/posthog
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk