Create an Ad Pixel
Changed onAdd 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
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.
The business whose claimed campaigns send conversions to this pixel, prefixed biz_. You must have claimed at least one of its campaigns.
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.
The ad platform the pixel belongs to.
Example request
{
"access_token": "new-token",
"account_id": "biz_xxxxxxxxxxxxxx",
"external_id": "998877665544",
"platform": "meta"
}Response
Created
The business whose claimed campaigns send conversions to this pixel, with its name and logo.
The business whose claimed campaigns send conversions to this pixel, prefixed biz_.
When the pixel was added, as an ISO 8601 timestamp.
Why the ad platform rejected the last delivery. Null unless status is errored.
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.
Ad pixel ID, prefixed adpx_.
The pixel's name on the ad platform. Null when the ad platform returned none.
The ad platform the pixel belongs to.
active receives conversions. errored stopped because the ad platform rejected the access token; update the token to resume. disabled was turned off by Whop.
When the pixel was last changed, as an ISO 8601 timestamp.
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"route": "shine-time-auto-detailing",
"title": "Shine Time Auto Detailing"
},
"account_id": "biz_xxxxxxxxxxxxxx",
"created_at": "2026-01-01T12:00:00.000Z",
"external_id": "111222001",
"id": "adpx_xxxxxxxxxxxxxx",
"name": "Supplier pixel",
"platform": "meta",
"status": "active",
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
- info
added the required property
account/banner_image_urlto the response with the status
- info
- info
added the required property
accountto the response with the status
- info