Ads

Updates an ad's editable fields.

patch/ads/{id}

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The ad ID.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Request body

object required
call_to_action, 'apply_now' | 'book_now' | 'call_now' | 'contact_us' | 'donate_now' | 'download' | 'get_directions' | 'get_offer' | 'get_quote' | 'learn_more' | 'listen_now' | 'message_page' | 'no_button' | 'open_link' | 'order_now' | 'request_time' | 'see_details' | 'see_menu' | 'see_more' | 'send_updates' | 'shop_now' | 'sign_up' | 'subscribe' | 'visit_site' | 'watch_more'

The call-to-action button shown on the ad.

creatives, object[]

The ad's creative assets. Each entry is an uploaded file id with an optional format; omit format for the original asset. Replaces a live ad's creative. Entries with no format replace it with a carousel's ordered cards.

descriptions, object[]

The description shown on the ad.

headlines, object[]

The headline shown on the ad.

primary_texts, object[]

The primary text shown in the ad body. Several entries make text variations.

title, string

The display name of the ad.

url, string

The URL the ad links to. Query parameters are merged into url_parameters, so the stored URL is always bare.

url_parameters, object

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

{
  "call_to_action": "learn_more",
  "creatives": [
    {
      "crop": {
        "height": 1920,
        "width": 1080,
        "y": 120
      },
      "format": "vertical",
      "id": "file_xxxxxxxxxxxxxx"
    }
  ],
  "descriptions": [
    {
      "text": "Paint correction included"
    }
  ],
  "headlines": [
    {
      "text": "Austin's mobile detailers"
    }
  ],
  "primary_texts": [
    {
      "text": "Book a two-day ceramic coating and keep the shine for three years."
    }
  ],
  "title": "Ceramic coating — spring hook v2",
  "url": "https://shinetime.example/ceramic-coating",
  "url_parameters": {
    "placement": "{{placement}}",
    "ref": "spring"
  }
}

Response

ad updated

Ad required
ad_campaign, AdEntityReference required

The ad campaign this ad belongs to.

ad_group, AdEntityReference required

The ad group this ad belongs to.

added_to_cart_value, number required

USD value attributed to add-to-cart events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

added_to_carts, number required

Whop pixel-attributed add-to-cart events, last-click.

appeal_available_at, string nullable required

When the ad can next be appealed, as an ISO 8601 timestamp. null when it can be appealed now.

call_to_action, 'learn_more' | 'shop_now' | 'sign_up' | 'subscribe' | 'get_started' | 'book_now' | 'apply_now' | 'contact_us' | 'download' | 'order_now' | 'buy_now' | 'get_quote' | 'message_page' | 'whatsapp_message' | 'instagram_message' | 'call_now' | 'get_directions' | 'send_updates' | 'get_offer' | 'watch_more' | 'listen_now' | 'play_game' | 'open_link' | 'no_button' | 'get_offer_view' | 'get_event_tickets' | 'see_menu' | 'request_time' | 'event_rsvp' | 'see_details' | 'view_instagram_profile' | 'donate_now' | 'see_more' | 'visit_site' | 'null' nullable required

The call-to-action button shown on the ad.

click_through_rate, number required

Clicks divided by impressions, between 0 and 1.

clicks, number required

The number of clicks.

completed_registration_value, number required

USD value attributed to complete-registration events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

completed_registrations, number required

Whop pixel-attributed complete-registration events, last-click.

contact_value, number required

USD value attributed to contact events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

contacts, number required

Whop pixel-attributed contact events, last-click.

content_review, AdContentReview required

Whop's content review of this ad: whether it has finished and the content rules it breaks.

cost_per_added_to_cart, number nullable required

Spend divided by attributed add-to-cart events; null when they are not the goal and none are attributed.

cost_per_click, number required

Spend divided by clicks; 0 when there are no clicks.

cost_per_completed_registration, number nullable required

Spend divided by attributed complete-registration events; null when they are not the goal and none are attributed.

cost_per_contact, number nullable required

Spend divided by attributed contact events; null when contacts are not the goal and none are attributed.

cost_per_lead, number nullable required

Spend divided by attributed leads; null when leads are not a goal and none are attributed.

cost_per_mille, number required

Spend per 1,000 impressions; 0 when there are no impressions.

cost_per_purchase, number nullable required

Spend divided by attributed purchases; null when purchases are not a goal and none are attributed.

cost_per_result, number nullable required

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.

cost_per_schedule, number nullable required

Spend divided by attributed schedule events; null when schedules are not the goal and none are attributed.

cost_per_submitted_application, number nullable required

Spend divided by attributed submit-application events; null when they are not the goal and none are attributed.

cost_per_unique_click, number nullable required

Spend divided by unique clicks; null when there are no unique clicks.

cost_per_viewed_content, number nullable required

Spend divided by attributed view-content events; null when they are not the goal and none are attributed.

created_at, string required

When the ad was created, as an ISO 8601 timestamp.

creatives, AdCreative[] required
custom_conversions, number required

Whop pixel-attributed custom (merchant-defined) conversion events, last-click, across all custom event names.

custom_event_counts, object required

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.

custom_event_values, object required

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.

delivery_status, 'rejected' | 'in_review' | 'draft' | 'paused' | 'processing' | 'revise_content' | 'issues' | 'scheduled' | 'learning' | 'active' required

Whether the ad is delivering right now, and if not, why. When several states apply at once, the highest-precedence one is returned.

descriptions, AdText[] required
frequency, number nullable required

Impressions divided by reach.

headlines, AdText[] required
id, string required

Unique identifier for the ad, prefixed ad_.

impressions, number required

The number of impressions.

issues, AdPlatformIssue[] required
lead_value, number required

USD value attributed to lead events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

leads, number required

Whop pixel-attributed leads, last-click.

link_clicks, number required

Page views on your destination from people who clicked the ad, recorded by the Whop pixel. Counted the same way on every ad platform.

primary_texts, AdText[] required
purchase_value, number required

USD value of pixel-attributed purchases.

purchases, number required

Whop pixel-attributed purchases, last-click.

reach, number required

The number of unique people who saw this.

result_event, 'purchase' | 'lead' | 'schedule' | 'submit_application' | 'contact' | 'complete_registration' | 'view_content' | 'add_to_cart' | 'custom' | 'messaging_conversation' | 'impressions' | 'null' nullable required

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.

result_event_name, string nullable required

The merchant-defined event name when result_event is custom; null for the standard events.

results, number nullable required

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.

return_on_ad_spend, number required

Purchase value divided by spend, both in USD (a currency-neutral ratio); 0 when there is no spend.

schedule_value, number required

USD value attributed to schedule events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

schedules, number required

Whop pixel-attributed schedule events, last-click.

spend, number required

The amount charged, in spend_currency.

spend_currency, string nullable required

The ISO 4217 currency code of all monetary metrics.

status, 'active' | 'paused' | 'in_review' | 'rejected' required

Whether the ad is enabled. active and paused are set by you; in_review and rejected come from ad review.

submitted_application_value, number required

USD value attributed to submit-application events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

submitted_applications, number required

Whop pixel-attributed submit-application events, last-click.

title, string nullable required

Display title of the ad.

unique_click_through_rate, number nullable required

Unique clicks divided by impressions, between 0 and 1.

unique_clicks, number required

People who clicked, reported by the Whop pixel, counted once per person.

updated_at, string required

When the ad was last updated, as an ISO 8601 timestamp.

url, string nullable required

The URL the ad links to, without its query string. Parameters belong in url_parameters. Any you send on url are moved there.

url_parameters, object required

Query parameters appended to url, keyed by name. Whop's click-attribution parameters are reserved.

viewed_content_value, number required

USD value attributed to view-content events. Sums the value sent with each event, normalized to USD; events without a value contribute 0.

viewed_contents, number required

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_at to the response with the status

    • info

      added the required property content_review/blocked_by_website to the response with the status

    • info

      added the required property content_review/tags/items/blocking to the response with the status

    1 more change in this revision