---
title: "Create an Ad Pixel"
method: POST
path: "/ad_pixels"
tags: ["Ad Pixels"]
---

# Create an Ad Pixel

`POST /ad_pixels`

## Request

- Base URL: `https://api.whop.com/api/v1`
- URL: `https://api.whop.com/api/v1/ad_pixels`
- Auth: HTTP bearer

Add your pixel for a business whose campaigns you claimed. Whop checks the access token with the ad platform, then sends the pixel the conversions credited to your claimed campaigns for that business. Each business takes one pixel per ad platform, and each pixel can serve one business. On Google, the pixel is your Google Ads account, which can serve several businesses, and Whop creates its conversion actions there with your service account key.

## Headers

- `Api-Version-Date` string
- `Idempotency-Key` string

## Request body

- object
  - `access_token` string, required: A credential that can send events to the pixel on the ad platform. For `meta`, a Conversions API access token. For `tiktok`, an Events API access token. For `thrad`, an API key with `events:write` for the tag. For `google`, the JSON key of a Google Cloud service account. Give the service account Standard access to the Google Ads account. In its project, turn on the Google Ads API and the Data Manager API. The project also needs Explorer access or higher to the Google Ads API. Use a service account made only for Whop, with no roles in its project. Whop never returns it.
  - `account_id` string, required: The business whose claimed campaigns send conversions to this pixel, prefixed `biz_`. You must have claimed at least one of its campaigns.
  - `external_id` string, required: The pixel's ID on the ad platform: a Meta pixel or dataset ID, TikTok pixel code, Google Ads customer ID, or Thrad tag ID.
  - `platform` 'meta' | 'tiktok' | 'google' | 'thrad', required: The ad platform the pixel belongs to.

## Response `201`

Created

- AdPixel
  - `account` StorefrontAccount, required: The business whose claimed campaigns send conversions to this pixel, with its name and logo.
    - `banner_image_url` string, nullable, required: Account banner image URL. `null` when the account has not set one.
    - `id` string, required: Account ID, prefixed `biz_`.
    - `logo_url` string, nullable, required: Account logo image URL. `null` when the account has not set one.
    - `route` string, required: Account public route identifier, used in the `whop.com/{route}` storefront path.
    - `title` string, required: Account display name.
  - `account_id` string, required: The business whose claimed campaigns send conversions to this pixel, prefixed `biz_`.
  - `created_at` string, required: When the pixel was added, as an ISO 8601 timestamp.
  - `error_message` string, nullable, required: Why the ad platform rejected the last delivery. Null unless `status` is `errored`.
  - `external_id` string, required: The pixel's ID on the ad platform: a Meta pixel or dataset ID, TikTok pixel code, Google Ads customer ID, or Thrad tag ID.
  - `id` string, required: Ad pixel ID, prefixed `adpx_`.
  - `name` string, nullable, required: The pixel's name on the ad platform. Null when the ad platform returned none.
  - `platform` 'meta' | 'tiktok' | 'google' | 'thrad', required: The ad platform the pixel belongs to.
  - `status` 'active' | 'errored' | 'disabled', required: `active` receives conversions. `errored` stopped because the ad platform rejected the access token; update the token to resume. `disabled` was turned off by Whop.
  - `updated_at` string, required: When the pixel was last changed, as an ISO 8601 timestamp.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `409`: Conflict

## Changes

- **2026-11-24** `44189be0e68a`: 1 info
  - added the required property `account/banner_image_url` to the response with the `201` status
- **2026-11-17** `e43074152bf5`: 1 info
  - added the required property `account` to the response with the `201` status
- **2026-11-11** `4c2ae5cced41`: 1 warning, 1 info
  - added the new `thrad` enum value to the `platform` response property for the response status `201`
  - added the new `thrad` enum value to the request property `platform`
- **2026-10-23** `6ba6eaba40d0`: 1 warning, 1 info
  - added the new `google` enum value to the `platform` response property for the response status `201`
  - added the new `google` enum value to the request property `platform`
- **2026-10-21** `6921a2e6a2a3`: 1 warning, 1 info
  - added the new `tiktok` enum value to the `platform` response property for the response status `201`
  - added the new `tiktok` enum value to the request property `platform`

[Operation history](https://skmtc.dev/whop/apis/whop-api/changes/ad_pixels/post.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
