Create an Ad
Changed onCreates an ad in an ad group. Any campaign status other than draft launches the campaign, which requires an ads payment method on the account.
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
The account to create an inline ad_group.ad_campaign under. Defaults to the account-scoped key's own account.
An inline ad group to create (same shape as POST /ad_groups, including ad_campaign_id). Creates the ad group and the ad together. Provide this OR ad_group_id.
The existing ad group to create the ad in. Provide this OR ad_group, not both.
The call-to-action button shown on the ad.
The ad's creative assets. Each entry is an uploaded file id with an optional format; omit format for the original asset. Entries with no format become a carousel's ordered cards, sharing the ad's copy.
The description shown on the ad.
The headline shown on the ad.
The primary text shown in the ad body. Several entries make text variations.
The display name of the ad.
The URL the ad links to. Query parameters are merged into url_parameters, so the stored URL is always bare.
Query parameters to append to the destination URL, keyed by parameter name. Merged with any query string on url. Whop adds its own click-attribution parameters; those are reserved, and setting one returns an error that names it.
Example request
{
"ad_group": {
"ad_campaign_id": "adcamp_xxxxxxxxxxxxxx",
"budget_amount": 60,
"budget_type": "daily",
"title": "Austin — ceramic coating buyers"
},
"ad_group_id": "adgrp_xxxxxxxxxxxxxx",
"call_to_action": "shop_now",
"creatives": [
{
"crop": {
"height": 1000,
"width": 1000,
"x": 40
},
"format": "square",
"id": "file_xxxxxxxxxxxxxx",
"source_id": "file_xxxxxxxxxxxxxx"
}
],
"descriptions": [
{
"text": "Two-stage paint correction included"
}
],
"headlines": [
{
"text": "Showroom shine, guaranteed"
}
],
"primary_texts": [
{
"text": "Three-year ceramic coating, booked online in under a minute."
}
],
"title": "Ceramic coating — spring hook",
"url": "https://shinetime.example/ceramic-coating",
"url_parameters": {
"ref": "spring"
}
}Response
ad created together with its ad group
The ad campaign this ad belongs to.
The ad group this ad belongs to.
USD value attributed to add-to-cart events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed add-to-cart events, last-click.
When the ad can next be appealed, as an ISO 8601 timestamp. null when it can be appealed now.
The call-to-action button shown on the ad.
Clicks divided by impressions, between 0 and 1.
The number of clicks.
USD value attributed to complete-registration events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed complete-registration events, last-click.
USD value attributed to contact events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed contact events, last-click.
Whop's content review of this ad: whether it has finished and the content rules it breaks.
Spend divided by attributed add-to-cart events; null when they are not the goal and none are attributed.
Spend divided by clicks; 0 when there are no clicks.
Spend divided by attributed complete-registration events; null when they are not the goal and none are attributed.
Spend divided by attributed contact events; null when contacts are not the goal and none are attributed.
Spend divided by attributed leads; null when leads are not a goal and none are attributed.
Spend per 1,000 impressions; 0 when there are no impressions.
Spend divided by attributed purchases; null when purchases are not a goal and none are attributed.
Spend divided by Whop pixel-attributed results. For impressions, it's the spend per 1,000 impressions. null when nothing Whop-attributable is being optimized for.
Spend divided by attributed schedule events; null when schedules are not the goal and none are attributed.
Spend divided by attributed submit-application events; null when they are not the goal and none are attributed.
Spend divided by unique clicks; null when there are no unique clicks.
Spend divided by attributed view-content events; null when they are not the goal and none are attributed.
When the ad was created, as an ISO 8601 timestamp.
Whop pixel-attributed custom (merchant-defined) conversion events, last-click, across all custom event names.
Whop pixel-attributed custom conversions, keyed by your event name with its last-click count as the value. Empty when no named custom events are attributed. Custom events fired without a name are counted in custom_conversions but omitted here, so these values sum to at most custom_conversions.
Conversion value attributed to each custom event, keyed by event name like custom_event_counts. Sums the value passed to whop.track, normalized to USD; events fired without a value contribute 0.
Whether the ad is delivering right now, and if not, why. When several states apply at once, the highest-precedence one is returned.
Impressions divided by reach.
Unique identifier for the ad, prefixed ad_.
The number of impressions.
USD value attributed to lead events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed leads, last-click.
Page views on your destination from people who clicked the ad, recorded by the Whop pixel. Counted the same way on every ad platform.
USD value of pixel-attributed purchases.
Whop pixel-attributed purchases, last-click.
The number of unique people who saw this.
The Whop pixel event whose attributed count represents results. It's the optimization goal, or the highest-volume attributed event for a campaign that budgets per ad group. impressions counts reported impressions. null when the goal isn't a Whop-attributed event.
The merchant-defined event name when result_event is custom; null for the standard events.
The Whop pixel-attributed count behind result_event. When a campaign's ad groups optimize different goals there is no single result_event (it is null), and this is instead the sum of each ad group's own attributed results. Null when nothing Whop-attributable is being optimized for.
Purchase value divided by spend, both in USD (a currency-neutral ratio); 0 when there is no spend.
USD value attributed to schedule events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed schedule events, last-click.
The amount charged, in spend_currency.
The ISO 4217 currency code of all monetary metrics.
Whether the ad is enabled. active and paused are set by you; in_review and rejected come from ad review.
USD value attributed to submit-application events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed submit-application events, last-click.
Display title of the ad.
Unique clicks divided by impressions, between 0 and 1.
People who clicked, reported by the Whop pixel, counted once per person.
When the ad was last updated, as an ISO 8601 timestamp.
The URL the ad links to, without its query string. Parameters belong in url_parameters. Any you send on url are moved there.
Query parameters appended to url, keyed by name. Whop's click-attribution parameters are reserved.
USD value attributed to view-content events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.
Whop pixel-attributed view-content events, last-click.
Example response
{
"ad_campaign": {
"id": "adcamp_xxxxxxxxxxxxxx"
},
"ad_group": {
"id": "adcamp_xxxxxxxxxxxxxx"
},
"added_to_cart_value": 1850,
"added_to_carts": 74,
"appeal_available_at": "2026-01-01T12:00:00.000Z",
"call_to_action": "learn_more",
"click_through_rate": 0.0209,
"clicks": 1337,
"completed_registration_value": 95,
"completed_registrations": 19,
"contact_value": 175,
"contacts": 27,
"content_review": {
"status": "not_reviewed",
"tags": [
{
"locations": [
"creative"
]
}
]
},
"cost_per_added_to_cart": 6.515675675675676,
"cost_per_click": 0.45,
"cost_per_completed_registration": 25.37684210526316,
"cost_per_contact": 17.85777777777778,
"cost_per_lead": 3.984793388429752,
"cost_per_mille": 9.42,
"cost_per_purchase": 12.68842105263158,
"cost_per_result": 12.68842105263158,
"cost_per_schedule": 10.48173913043478,
"cost_per_submitted_application": 40.18,
"cost_per_unique_click": 0.48,
"cost_per_viewed_content": 0.2253084112149533,
"created_at": "2026-01-01T12:00:00.000Z",
"creatives": [
{
"crop": {
"height": 1000,
"width": 1000,
"x": 40
},
"format": "square",
"id": "file_xxxxxxxxxxxxxx",
"media_type": "image",
"source_id": "file_xxxxxxxxxxxxxx",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
],
"custom_conversions": 63,
"custom_event_counts": {
"booked_detail": 63
},
"custom_event_values": {
"booked_detail": 4820
},
"delivery_status": "processing",
"descriptions": [
{
"text": "Austin's mobile detailers"
}
],
"headlines": [
{
"text": "Austin's mobile detailers"
}
],
"id": "ad_xxxxxxxxxxxxxx",
"impressions": 51204,
"issues": [
{
"category": "error",
"id": "adiss_xxxxxxxxxxxxxx",
"message": "Your ad didn't pass our content review. Update it to follow our ad guidelines and resubmit.",
"resource_id": "ad_xxxxxxxxxxxxxx",
"resource_type": "ad",
"title": "Ad issue"
}
],
"lead_value": 1180,
"leads": 121,
"link_clicks": 1071,
"primary_texts": [
{
"text": "Austin's mobile detailers"
}
],
"purchase_value": 9462,
"purchases": 38,
"result_event": "purchase",
"result_event_name": "booked_detail",
"results": 38,
"return_on_ad_spend": 19.62419113987058,
"schedule_value": 640,
"schedules": 46,
"spend": 482.16,
"spend_currency": "usd",
"status": "active",
"submitted_application_value": 300,
"submitted_applications": 12,
"title": "Hero video (Copy 1)",
"unique_clicks": 1012,
"updated_at": "2026-01-01T12:00:00.000Z",
"url": "https://shinetime.example/ceramic-coating",
"url_parameters": {},
"viewed_contents": 2140
}Changes
- info
added the required property
appeal_available_atto the response with the status - info
added the required property
content_review/blocked_by_websiteto the response with the status
- info
- info
added the required property
content_review/tags/items/blockingto the response with the status
1 more change in this revision
- info