Update an Ad Group
Changed onUpdates an ad group's editable fields. Only the keys you send are changed.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The ad group ID.
Headers
Pins the request to a dated API version.
Request body
Saved audiences to deliver to or exclude. Can't be combined with demographics.automatic.
How delivery bids are set in the ad auction. Target-based strategies use desired_cost_per_result.
This ad group's budget in USD, which is what it is stored and billed in. Omit when the budget is set on the campaign instead.
This ad group's budget stated in the account's ads reporting currency (budget_currency on the response) instead of USD. Converted to USD at the current exchange rate and stored as budget_amount; on an update, an amount equal to the current budget_amount_local keeps the stored USD budget as is. Provide this or budget_amount, not both.
Deprecated: lifetime budgets have ended. Leave this out, or send daily. lifetime returns a 400 unless the ad group already has a lifetime budget.
The pixel event optimized for. A standard event, or any custom pixel event name.
Hours the ad group delivers in each week, keyed by day. Each window runs from start to end on the hour, with 24:00 for midnight. A day's windows can't overlap or touch. A day that's empty or left out doesn't deliver. The schedule is replaced as a whole. null delivers at every hour. A schedule needs a lifetime budget on the ad group, or on its campaign when the campaign holds the budget. Only ad groups and campaigns that already have one can use it.
Age, gender, and automatic-audience targeting.
The cost per result you want for this ad group, in USD. For an awareness campaign, it's the cost per 1,000 impressions. null uses the campaign's desired_cost_per_result.
Device platforms and operating systems to target.
When the ad group stops delivering, as an ISO 8601 timestamp. Omit to run until paused.
Search terms the ad group's ads can show for, and terms they never show for. Only search campaigns take keywords, and each of their ad groups needs at least one before launch. Replaces the stored list; omit to keep it.
Languages to target, as ISO 639 codes such as en or es. Empty or omitted targets all languages.
The object that shows the ad group's ads. Required in a physical campaign.
Locations to target and exclude.
When the ad group starts delivering, as an ISO 8601 timestamp. Once the ad group and its campaign have started, it can only move earlier.
Initial status (default: active).
The display name of the ad group.
Example request
{
"audiences": {
"exclude": [
"adaud_xxxxxxxxxxxxxx"
],
"include": [
"adaud_xxxxxxxxxxxxxx"
]
},
"bid_type": "average_target",
"budget_amount": 40,
"budget_type": "daily",
"conversion_event": "purchase",
"delivery_schedule": {
"saturday": [
{
"end": "24:00",
"start": "00:00"
}
],
"sunday": [
{
"end": "24:00",
"start": "00:00"
}
],
"thursday": [
{
"end": "14:00",
"start": "05:00"
}
],
"tuesday": [
{
"end": "12:00",
"start": "10:00"
},
{
"end": "20:00",
"start": "16:00"
}
]
},
"demographics": {
"gender": "all",
"maximum_age": 64,
"minimum_age": 21
},
"desired_cost_per_result": 35,
"devices": {
"operating_systems": [
{
"minimum_version": "18.0",
"os": "ios"
}
],
"platforms": [
"mobile"
]
},
"ends_at": "2026-01-01T12:00:00.000Z",
"keywords": [
{
"match_type": "broad"
}
],
"languages": [
"en"
],
"medium": "blimp",
"regions": {
"exclude": {
"cities": [
{
"key": "2418046",
"name": "Austin"
}
],
"countries": [
"US"
],
"country_groups": [
"north_america"
],
"custom_locations": [
{
"distance_unit": "mile",
"latitude": 30.2672,
"longitude": -97.7431,
"name": "4180 Burnet Rd, Austin TX 78756",
"radius": 25
}
],
"regions": [
"US-TX"
]
},
"include": {
"cities": [
{
"key": "2418046",
"name": "Austin"
}
],
"countries": [
"US"
],
"country_groups": [
"north_america"
],
"custom_locations": [
{
"distance_unit": "mile",
"latitude": 30.2672,
"longitude": -97.7431,
"name": "4180 Burnet Rd, Austin TX 78756",
"radius": 25
}
],
"regions": [
"US-TX"
]
}
},
"starts_at": "2026-01-01T12:00:00.000Z",
"status": "paused",
"title": "North America — brand prospecting"
}Response
ad group updated
The ad campaign this ad group 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.
Saved audiences this ad group delivers to or excludes.
How delivery bids are set in the ad auction. Target-based strategies use desired_cost_per_result.
This ad group's budget in USD, which is what it is stored and billed in. null when the budget is set on the campaign instead.
The same budget stated in budget_currency at today's exchange rate, for display in the account's ads reporting currency. null when budget_amount is.
The ISO 4217 code budget_amount_local is in: the account's ads_reporting_currency preference. usd unless the account changed it.
Whether budget_amount is spent per day (daily) or over the ad group's full run (lifetime). A lifetime ad group also needs ends_at, at least 24 hours after it starts.
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.
The pixel event optimized for. A standard event, or any custom pixel event name.
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 group 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 ads in this ad group are delivering right now, and if not, why. When several states apply at once, the highest-precedence one is returned.
Age, gender, and automatic-audience targeting.
The cost per result the advertiser wants for this ad group, in USD. For an awareness campaign, it's the cost per 1,000 impressions. null when the ad group uses its campaign's desired_cost_per_result.
Device platforms and operating systems targeted.
When the ad group stops delivering, as an ISO 8601 timestamp. null when it runs until paused.
Impressions divided by reach.
Unique identifier for the ad group, prefixed adgrp_.
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.
The object that shows the ad group's ads. null outside a physical campaign.
USD value of pixel-attributed purchases.
Whop pixel-attributed purchases, last-click.
The number of unique people who saw this.
Locations targeted and excluded.
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.
When the ad group starts delivering, as an ISO 8601 timestamp. null when it starts as soon as it's active.
Whether the ad group is enabled. active and paused are set by you; rejected means it failed ad review; duplicating is a copy still being filled in.
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 name of the ad group.
Unique clicks divided by impressions, between 0 and 1.
People who clicked, reported by the Whop pixel, counted once per person.
When the ad group was last updated, as an ISO 8601 timestamp.
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"
},
"added_to_cart_value": 12650,
"added_to_carts": 165,
"audiences": {
"exclude": [
"adaud_xxxxxxxxxxxxxx"
],
"include": [
"adaud_xxxxxxxxxxxxxx"
]
},
"bid_type": "average_target",
"budget_amount": 60,
"budget_amount_local": 60,
"budget_currency": "usd",
"budget_type": "daily",
"click_through_rate": 0.02,
"clicks": 5500,
"completed_registration_value": 1650,
"completed_registrations": 55,
"contact_value": 2640,
"contacts": 88,
"conversion_event": "purchase",
"cost_per_added_to_cart": 8,
"cost_per_click": 0.3,
"cost_per_completed_registration": 24,
"cost_per_contact": 15,
"cost_per_lead": 10,
"cost_per_mille": 6,
"cost_per_purchase": 30,
"cost_per_result": 40,
"cost_per_schedule": 22,
"cost_per_submitted_application": 120,
"cost_per_unique_click": 0.4,
"cost_per_viewed_content": 1.1,
"created_at": "2026-01-01T12:00:00.000Z",
"custom_conversions": 41,
"custom_event_counts": {
"gift_card_purchased": 5,
"quote_requested": 33
},
"custom_event_values": {
"gift_card_purchased": 750,
"quote_requested": 0
},
"delivery_schedule": {
"friday": [
{
"end": "12:00",
"start": "10:00"
}
],
"monday": [
{
"end": "12:00",
"start": "10:00"
}
],
"saturday": [
{
"end": "12:00",
"start": "10:00"
}
],
"sunday": [
{
"end": "12:00",
"start": "10:00"
}
],
"thursday": [
{
"end": "12:00",
"start": "10:00"
}
],
"tuesday": [
{
"end": "12:00",
"start": "10:00"
}
],
"wednesday": [
{
"end": "12:00",
"start": "10:00"
}
]
},
"delivery_status": "paused",
"demographics": {
"gender": "all",
"maximum_age": 64,
"minimum_age": 21
},
"desired_cost_per_result": 40,
"devices": {
"operating_systems": [
{
"minimum_version": "18.0",
"os": "ios"
}
],
"platforms": [
"mobile"
]
},
"ends_at": "2026-01-01T12:00:00.000Z",
"id": "adgrp_xxxxxxxxxxxxxx",
"impressions": 220000,
"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"
}
],
"keywords": [
{
"match_type": "broad"
}
],
"languages": [
"en"
],
"lead_value": 3960,
"leads": 132,
"link_clicks": 4400,
"medium": "blimp",
"purchase_value": 7920,
"purchases": 44,
"regions": {
"exclude": {
"cities": [
{
"key": "2418046",
"name": "Austin"
}
],
"countries": [
"US"
],
"country_groups": [
"north_america"
],
"custom_locations": [
{
"distance_unit": "mile",
"latitude": 30.2672,
"longitude": -97.7431,
"name": "4180 Burnet Rd, Austin TX 78756",
"radius": 25
}
],
"regions": [
"US-TX"
],
"zips": [
"US:78756"
]
},
"include": {
"cities": [
{
"key": "2418046",
"name": "Austin"
}
],
"countries": [
"US"
],
"country_groups": [
"north_america"
],
"custom_locations": [
{
"distance_unit": "mile",
"latitude": 30.2672,
"longitude": -97.7431,
"name": "4180 Burnet Rd, Austin TX 78756",
"radius": 25
}
],
"regions": [
"US-TX"
],
"zips": [
"US:78756"
]
}
},
"result_event": "custom",
"result_event_name": "quote_requested",
"results": 33,
"return_on_ad_spend": 6,
"schedule_value": 5400,
"schedules": 60,
"spend": 1320,
"spend_currency": "usd",
"starts_at": "2026-01-01T12:00:00.000Z",
"status": "active",
"submitted_application_value": 1320,
"submitted_applications": 11,
"title": "Austin ceramic coating — repeat customers",
"unique_clicks": 3300,
"updated_at": "2026-01-01T12:00:00.000Z",
"viewed_content_value": 8400,
"viewed_contents": 1200
}Changes
- info
added the new optional request property
medium - info
added the required property
mediumto the response with the status
- info
- info
request property
budget_typedeprecated
- info