Update an ad set
Changes an ad set's settings, such as its budget, bid strategy, status or delivery options. At least one updatable field is required.
Use it for:
- ABO budget updates.
- Ad-set-scoped pause/resume.
- Bid-strategy edits.
- Meta value-rule-set attach/detach.
- Meta beneficiary and payer:
dsaBeneficiary/dsaPayorfor the EU,regionalRegulatedCategories/regionalRegulationIdentitiesfor the regional regimes. - Meta-only post-launch delivery settings via
platformSpecificData.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
Platform ad set ID
Body
application/jsonWhat every request needs
facebook | instagram | tiktok | linkedin | pinterest | google | twitter | openai | redditOptional parameters18 fields
Omit if not updating budget
active | pausedWrites the ad set's own on/off switch (Meta: configured_status; X: the line item's entity_status ACTIVE / PAUSED), whatever delivery status its ads report. Omit if not toggling delivery state.
Rename the ad set. At least one of budget/status/bidStrategy/name is required.
Supported on Meta, Google (the ad group), TikTok, LinkedIn (the campaign), Pinterest, X (the line item name), OpenAI and Reddit. Platforms without a rename return 501.
The new name is stored right away, so GET /v1/ads/ad-sets and GET /v1/ads/tree return it without a sync.
Ad-set-level bid strategy. Overrides the campaign-level default.
- Meta (facebook, instagram): supported.
- TikTok: the Meta-style enum is mapped to bid_type / bid_price / deep_bid_type automatically.
- OpenAI: LOWEST_COST_WITH_BID_CAP and COST_CAP both map to the ad group's
bidding_config.max_bid_micros(one knob covers both). LOWEST_COST_WITH_MIN_ROAS is rejected with 422 (no ROAS-based bidding). - X: writes the line item's
bid_strategy: LOWEST_COST_WITHOUT_CAP = AUTO, LOWEST_COST_WITH_BID_CAP = MAX, COST_CAP = TARGET, withbidAmountasbid_amount_local_micro. LOWEST_COST_WITH_MIN_ROAS is rejected with 422. - X objectives: X decides which strategy the objective allows (TARGET only on REACH, FOLLOWERS and WEBSITE_CLICKS; MAX not on REACH or FOLLOWERS).
- Reddit: see the mapping in the description above (LOWEST_COST_WITH_MIN_ROAS returns 422).
- Others (linkedin, pinterest, google): 501 Not Implemented when bidStrategy is set.
Meta only (400 elsewhere, before anything in the request is written). Writes the ad set's dsa_beneficiary, the legal entity that benefits from its ads. Same field and limits as dsaBeneficiary on POST /v1/ads/create. Only the fields you send are written.
This is the EU DSA field. For regional regimes (Brazil, Malaysia, Thailand, Australia, Singapore, Taiwan, India) use regionalRegulatedCategories and regionalRegulationIdentities instead.
Read it back with GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=dsa_beneficiary,dsa_payor.
Meta only (400 elsewhere, before anything in the request is written). Writes the ad
set's dsa_payor, the legal entity that pays for its ads, same field and limits as
dsaPayor on POST /v1/ads/create. Can differ from dsaBeneficiary.
Meta only (400 elsewhere, before anything in the request is written). Writes the ad
set's regional_regulated_categories, same values as on POST /v1/ads/create
(AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL,
THAILAND_UNIVERSAL, US_SECURITIES_LICENSING). Send it with regionalRegulationIdentities. An empty array is a 400.
Meta only (400 elsewhere, before anything in the request is written). Writes the ad set's regional_regulation_identities: the Verified identity IDs of the beneficiary and payer for each declared category.
- Same keys and validation as on POST /v1/ads/create (for example
universal_beneficiary/universal_payerfor BRAZIL_REGULATION, MALAYSIA_UNIVERSAL, THAILAND_UNIVERSAL and US_SECURITIES_LICENSING). - Send each ID as a string of digits; an empty object is a 400.
- When Meta refuses the ad set for a missing verified advertiser, the 400
platform_api_errornames the expected keys indetails.expectedIdentityKeys, as on create.
Read both back with GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=regional_regulated_categories,regional_regulation_identities.
TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: audience is TikTok's smart_audience_enabled, interestsBehaviors its smart_interest_behavior_enabled. When on, TikTok may deliver beyond the selected audiences or interests.
Available on Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
Only the flags you send are written. An unwritten flag reads back null in nativeSettings, so send false explicitly to be able to verify it is off. Applied with TikTok's adgroup/update; read it back with GET /v1/ads/ad-sets?adSetId=...&live=true.
Meta only (400 elsewhere). Manual placements, with the same object and enums as placements on POST /v1/ads/create.
- Object: REPLACES the ad set's current placement set (
publisher_platforms, every*_positionslist anddevice_platforms). A position list you leave out is removed. An object with no non-empty list is a 400 (sendnullinstead). null: removes every placement key, so Meta returns to automatic (Advantage+) placements.- Omitted: placements are left untouched.
Meta enforces co-selection rules (e.g. a position needs its publisher platform) and its error is returned as is. Meta may also reject null or a narrower set when an ad's creative uses per-placement asset customization (placementAssets).
Cannot be combined with targeting.placements (400).
Reddit only: the ad group's new start_time, ISO 8601. A value without an offset (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS) is read in the ad account timezone.
It cannot be earlier than the start of a campaign that starts in the future, nor at or after the ad group's end (400, param: startDate).
Every other platform ignores it (nothing is written and no error is returned, so a body that also sends status still applies it). Meta takes it in platformSpecificData.startDate.
Reddit only. The ad group's new end_time, ISO 8601, read in the ad account timezone when it has no offset; a date alone means the end of that day. null removes the end date so the ad group runs continuously.
Every other platform ignores it: nothing is written and no error is returned, so a body that also sends status still applies it. Meta takes it in platformSpecificData.endDate.
Returns 400 with param: endDate when:
- it is not after the start
- it falls after the campaign's end
- the campaign uses campaign budget optimization with no end date (Reddit then takes no end date on its ad groups)
nullwould outlive a campaign budget campaign that endsnullis sent for an ad group with a lifetime budget
Targeting fields to change. Meta and Reddit (400 elsewhere).
Reddit (see the description above):
languagesmust be among Reddit's ISO 639-1 codes (AR, CS, DA, DE, EL, EN, ES, FI, FR, HU, IT, JA, KO, NL, NO, PL, PT, RO, SV, VI, ZH, any case).- Emptying every included location is a 400 with
param: targeting.countries. - Fields Reddit ad groups cannot take (age, income, devices, behaviors, B2B,
places) return 400 withparam: targeting.<field>.
Meta: same shape as the targeting object on POST /v1/ads/create.
- Only the keys you send change. Zernio reads the ad set's live targeting, merges your keys over it and writes the full spec back, so everything else (custom audiences, geo, age, interest groups,
targeting_automation) is kept. - Setting any location replaces every location list. An empty list or
gender: allclears that key. incomeTieris resolved to Meta's income segment first (422 when Meta has none).- Fields Meta cannot target (LinkedIn B2B, Google
devices, Reddit communities and keywords) return 400 withparam: targeting.<field>. - An empty object is a 400, as is a
targeting.placementsobject with no non-empty list (param: targeting.placements). - When the live targeting cannot be read, the request returns 502 and nothing is written.
Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when bidStrategy is LOWEST_COST_WITH_BID_CAP or COST_CAP.
Internally converted to Meta's smallest-denomination integer, or (on OpenAI and X) to micros (× 1,000,000).
Meta only: may be sent alone, WITHOUT bidStrategy, to update the cap amount on an ad set whose parent campaign is COST_CAP or LOWEST_COST_WITH_BID_CAP. The strategy is inherited from the campaign and left untouched.
Minimum ROAS as a decimal multiplier (2.0 = 2.0x). Required when bidStrategy is LOWEST_COST_WITH_MIN_ROAS. Sent to Meta as bid_constraints.roas_average_floor × 10000. Not supported on OpenAI (422).
Meta only: may be sent alone, WITHOUT bidStrategy, to update the floor on an ad set whose strategy (its own, or the campaign's under CBO) is LOWEST_COST_WITH_MIN_ROAS.
Meta only (other platforms return 501). Value rule set to attach to this ad
set, from /v1/ads/value-rule-sets. Sending a different id replaces the
current association. To DETACH, send valueRulesApplied: false and omit
this field.
Meta only (other platforms return 501). false DETACHES the ad set's value
rule set and must be sent WITHOUT valueRuleSetId; the combination returns
400. true is optional when attaching, since attachment is driven by
valueRuleSetId, and requires it to be present.
Platform-specific post-launch delivery settings. The platform is implied by the
platform body param. Meta only; other platforms return 400. Unknown keys are rejected.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Value rule sets (Meta only)
See /v1/ads/value-rule-sets.
- ATTACH or REPLACE: send
valueRuleSetId. Attachment is driven by the id's presence, sovalueRulesApplied: trueis optional. Sending a different id replaces the previous association; there is no separate replace call. - DETACH: send
valueRulesApplied: falseand OMITvalueRuleSetId. - Sending
valueRulesApplied: falseTOGETHER withvalueRuleSetIdreturns 400mutually_exclusive_fields. - Eligibility: only ad sets on
LOWEST_COST_WITHOUT_CAPorCOST_CAP. Meta rejects the rest server-side. - Read back with
GET /v1/ads/ad-sets/{adSetId}?fields=value_rule_set_id. Meta does not documentvalue_rules_appliedas a readable ad-set field, so the boolean cannot be read back.
The mutually_exclusive_fields error is deliberate. Meta attaches the rule set whenever value_rule_set_id is present, even with value_rules_applied false, so echoing stored state while asking to detach would silently keep the bid adjustments live.
Bid strategy compatibility (per Meta's spec)
LOWEST_COST_WITHOUT_CAP: nobidAmount, noroasAverageFloor.LOWEST_COST_WITH_BID_CAP/COST_CAP:bidAmountREQUIRED (whole currency units).LOWEST_COST_WITH_MIN_ROAS:roasAverageFloorREQUIRED (decimal multiplier, e.g. 2.0 = 2.0x ROAS).
Meta only: send bidAmount WITHOUT bidStrategy to change the cap amount on an ad set whose strategy (its own, or the campaign's under CBO) is COST_CAP / LOWEST_COST_WITH_BID_CAP, leaving the strategy untouched.
Send roasAverageFloor WITHOUT bidStrategy the same way to change the floor of a LOWEST_COST_WITH_MIN_ROAS ad set. Either field against an incompatible current strategy is a 400.
Meta CBO (the campaign holds the budget): the campaign also holds the bid strategy, so only bidAmount or roasAverageFloor is written on the ad set. A bidStrategy equal to the campaign's is accepted; a different one is a 409 (change it with PUT /v1/ads/campaigns/{campaignId}).
Delivery settings and budget
Delivery settings are validated by Meta against the campaign objective. Incompatible combinations (e.g. a billingEvent the optimization goal doesn't allow) surface as 400s from Meta.
When updating budget on an ad set whose campaign holds the budget (CBO), the response is 409 with code invalid_field_value. Send it to PUT /v1/ads/campaigns/{campaignId} instead.
Status
status behaves exactly as PUT /v1/ads/ad-sets/{adSetId}/status describes. Only the ad set's own switch is written and its ads keep theirs. statusUpdated / statusSkipped report whether that switch was written or a live read showed it already in place.
Placements and targeting (Meta only)
placements and targeting take the same shapes as POST /v1/ads/create. Meta replaces an ad set's targeting wholesale, so Zernio reads the live targeting first, changes only what the request names and writes the merged spec back.
Custom audiences, geo, age, interest groups and targeting_automation you do not send are kept.
placementsreplaces the whole placement set.placements: nullreturns the ad set to automatic placements.- Omitting it leaves placements as they are.
Other platforms return 400 for either field before anything in the request is written (use PUT /v1/ads/{adId} with targeting where that platform supports it).
The live read and the incomeTier lookup run before any other field is written, so a 502 or 422 from them leaves the ad set unchanged.
Reddit Ads: budget, name and bidding
budgetchanges the ad group's amount. An ad group that spends its campaign budget returns 422 (update the campaign instead).- Reddit cannot switch a published budget between daily and lifetime, so
budget.typemust match the current one (422 otherwise). namerenames the ad group.
bidStrategy maps to the ad group's bid_strategy:
- LOWEST_COST_WITHOUT_CAP: automatic bidding (BIDLESS).
- LOWEST_COST_WITH_BID_CAP: MANUAL_BIDDING with
bidAmountas the bid. - COST_CAP: MAXIMIZE_VOLUME with
bidAmountas the cap. - LOWEST_COST_WITH_MIN_ROAS: returns 422.
Reddit Ads: targeting and schedule
targeting (same shape as on create; placements is a 400) and startDate / endDate change the ad group with one PATCH to Reddit. Read the current values with GET /v1/ads/ad-sets/{adSetId}/targeting.
Zernio reads the live ad group first and replaces only the targeting groups the request names:
- The included locations (
countries,regions,metros,cities,zips) are one list on Reddit, so sending any of them replaces all included locations. - Devices, platforms, carriers and automated expansion set in Reddit Ads Manager are kept.
The schedule is checked against the campaign before anything in the request is written. Each of these returns 400 naming startDate or endDate:
- The ad group starts before a campaign that starts in the future.
- The ad group ends after the campaign's end.
- Under campaign budget optimization, it must end by the campaign end (and has no end date when the campaign has none).
Zernio never resends the PATCH on its own, so after a 5xx read the ad group back before retrying.
Get live ad-set details
Shows a Meta ad set's current settings straight from Meta, including its learning phase, budget, schedule and targeting. The ad set is read live from Meta and returned verbatim. The default projection includes: - `learning_stage_info`: learning-phase status, LEARNING / SUCCESS / FAIL / WAIVING. Meta omits its `status` key on paused ad sets. - delivery settings, budgets and schedule - dayparting (`adset_schedule`, `pacing_type`) - targeting `fields` is a raw-passthrough override; unknown fields return Meta's 400 verbatim.
Duplicate an ad set
Copies an ad set, optionally with its ads and into another campaign, created paused so you can review it before launch. The copy is created paused so callers can review before launching. `campaignId` retargets the copy into another campaign; omitted = the source's own campaign. **Meta:** ads and creatives are included by default (`deepCopy: true`). - The ad set is copied with Meta's `/copies` endpoint, then each of its ads (DELETED and ARCHIVED ones are skipped) into the new ad set. - So an ad set with any number of ads copies: Meta refuses a single deep copy of 3 or more objects. - `statusOption` applies to the ad set and every ad. - If an ad copy fails, the partial ad set copy is deleted and the request fails with Meta's error. - A sync discovery starts automatically and runs after the response (`syncAfter: false` to skip). The copy is readable through Zernio once it finishes, usually within a few minutes. Until then, calls that take a copied id return 404, so retry them. TikTok: the ad group is read and recreated under the campaign with its targeting, bidding, budget and schedule (start reset to now); `deepCopy: true` recreates its ads too (default false). `startTime`, `endTime` and `renameStrategy` are ignored and `statusOption` must be PAUSED or absent. The copy appears on the next discovery sync.