GET /ads/adsets/{id}
One ad set
GET
BearerAuthheader
AuthorizationBearer <token>API key sk_...
id*stringad set id
accountId*stringConnected Facebook Page account id
{item, mock}
application/json- response
item?mock?booleancurl -X GET 'https://example.com/api/v1/ads/adsets/string?accountId=string'Example Response
{ "item": {}, "mock": true}POST /ads/adsets POST
Create an ad set in a campaign: targeting, budget (unless the campaign has one), schedule, optimization goal. PAUSED by default; requires confirm: true
PATCH /ads/adsets/{id} PATCH
Update or pause a ad set: name, status (PAUSED, ACTIVE, ARCHIVED, DELETED), dailyBudget, lifetimeBudget, bidAmount, endTime, targeting. Pausing needs no confirm; ACTIVE and spend changes need confirm: true