Upsert adset
Create or update a Facebook ad set
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
adPublishing. writeOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version
v3v3Body
Ad set identifier
adset_123Location identifier
loc_abc123Ad set name
Targeting Group AFacebook page ID
123456789Instagram actor ID
ig_123Messaging platforms
WHATSAPPMESSENGERINSTAGRAM_DIRECT["WHATSAPP"]WhatsApp phone number
+1234567890Targeting audience configuration including geo-locations, locales, placements, and custom audiences
Ad set budget config; schedule only under a campaign budget
Bid cap or cost-per-result goal in account currency. Required when the campaign bid strategy is LOWEST_COST_WITH_BID_CAP or COST_CAP.
2.5Where the conversion happens. Valid values depend on the parent campaign objective — OUTCOME_LEADS: on_ad (instant form), website, website_and_lead_form; OUTCOME_SALES: website (pixel), messaging. Not validated server-side, so values outside this set are forwarded to Facebook and may be rejected there.
websiteFacebook standard event optimised for. Only meaningful when conversionLocation is website (requires pixelId). Valid values depend on the parent campaign objective — OUTCOME_LEADS: COMPLETE_REGISTRATION, CONTACT, CONTENT_VIEW, FIND_LOCATION, LEAD, SCHEDULE, SEARCH, START_TRIAL, SUBMIT_APPLICATION, SUBSCRIBE; OUTCOME_SALES: ADD_PAYMENT_INFO, ADD_TO_CART, ADD_TO_WISHLIST, COMPLETE_REGISTRATION, CONTENT_VIEW, DONATE, INITIATED_CHECKOUT, PURCHASE, SEARCH, START_TRIAL, SUBSCRIBE. Not validated server-side, so values outside this set are forwarded to Facebook and may be rejected there.
PURCHASEConversion pixel ID
px_123Parent campaign ID
camp_123Response
The saved ad set
Ad set identifier
6a323f3f4454921db1498cd8Ad set name
Ad set 1Parent campaign id
6a323f3e4454921db1498ccfFacebook ad set id, set once published
120250378906150122Publishing status. On a published entity this is not the state you asked for but the effective_status Meta reports, mapped back — a pause or resume re-reads it live, so an ad awaiting review comes back IN_REVIEW rather than PAUSED or PUBLISHED. Any effective status this service does not recognise also maps to IN_REVIEW.
DRAFTSCHEDULEDPUBLISHINGPUBLISHEDPAUSEDIN_REVIEWWITH_ISSUESREJECTEDARCHIVEDFAILEDPUBLISHEDPublish error from Facebook. null on reads when there is none.
nullPage the ads run under
196684453527082Instagram account the ads run under. null when not linked.
nullMessaging destinations for click-to-message ads. Empty for other conversion locations.
["MESSENGER","INSTAGRAM_DIRECT"]Where the conversion happens
on_adBudget configuration
Targeting
Whether the ad set has edits not yet published
falseCreated at
2026-06-17T06:31:27.129ZUpdated at
2026-08-19T11:42:35.835Z