Update an Ad
Updates an ad's editable fields.
Request body
The call-to-action button shown on the ad.
The description variants shown on the ad.
The headline variants shown on the ad.
Use an existing Meta instant form instead of creating one — the form's Meta id, from a form already on the ad's Facebook page. Only allowed when the ad group's conversion_location is an instant-form destination. Mutually exclusive with lead_form. Replaces a stored lead_form.
Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true.
Promote an existing post instead of uploading creatives — a Facebook post or Instagram media id. Mutually exclusive with creatives. Pair with post_source.
Which network post_id refers to — facebook (a page post) or instagram (a media id). Authoritative; when omitted the source is inferred from the id shape.
The primary text variants shown in the ad body.
The display name of the ad.
The URL the ad links to.
Query parameters appended to the destination URL, as a string-to-string map.
Response
ad updated
Whop pixel-attributed add-to-cart events, last-click.
The call-to-action button shown on the ad.
Clicks divided by impressions, between 0 and 1.
The number of clicks.
Whop pixel-attributed complete-registration events, last-click.
Whop pixel-attributed contact events, last-click.
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; 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 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 broken out by merchant-defined event name, last-click, as a { event_name => count } map over the stats window. 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.
The current delivery state, mirroring the Delivery column in the ads dashboard. When several states apply at once, the highest-precedence one is returned.
Platform-reported impressions divided by reach.
Unique identifier for the ad.
The number of impressions.
The instant lead form on the ad (Meta lead ads), or null when the ad group's conversion_location is not an instant-form destination. An object with name, form_type (more_volume or higher_intent), an optional intro, questions, a privacy_policy, an optional completion screen, and phone_verification.
The Meta lead form the ad uses. Set when the ad references an existing form via lead_form_id, or once a form built from lead_form has been created on Meta at launch.
Whop pixel-attributed leads, last-click.
The click-to-message welcome copy, an object with message and keyword, or null when the ad has none.
Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true.
The existing post this ad promotes (a Facebook post or Instagram media), or null when it uses uploaded creatives.
Which network post_id refers to — facebook (a page post) or instagram (a media id) — or null when the ad uses uploaded creatives.
Preview image of the existing post this ad promotes. Null for ads that use uploaded creatives, or until the post's media has been fetched from the network.
USD value of pixel-attributed purchases.
Whop pixel-attributed purchases, last-click.
The number of unique people who saw this.
The Whop pixel conversion event whose attributed count represents results — the optimization goal, or the highest-volume attributed event for campaigns that budget per ad group. 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.
Whop pixel-attributed schedule events, last-click.
The amount charged, in spend_currency.
The ISO 4217 currency code of all monetary metrics.
The delivery status of the ad.
Whop pixel-attributed submit-application events, last-click.
The display title of the ad. Falls back to the creative set caption when unset.
Unique clicks divided by impressions, between 0 and 1.
The number of unique clicks.
When the ad was last updated, as an ISO 8601 timestamp.
The URL the ad links to.
Query parameters appended to the URL, as a string-to-string map.
Whop pixel-attributed view-content events, last-click.
Example response
{
"call_to_action": "learn_more",
"creatives": [
{
"format": "square"
}
],
"delivery_status": "rejected",
"issues": [
{
"resource_type": "ad_campaign"
}
],
"post_source": "facebook",
"result_event": "purchase",
"status": "active"
}