GET /ads/adsets
List ad sets of an ad account (mock mode: the objects created through this instance)
GET
BearerAuthheader
AuthorizationBearer <token>API key sk_...
accountId*stringConnected Facebook Page account id
adAccountId*stringAd account id (act_...)
parentId?stringAd sets of a campaign / ads of an ad set
statuses?stringComma list of effective statuses
limit?integerMaximum items (default 25, max 100)
Range
1 <= value <= 100Default
25after?stringnext of the previous page
{items, next, mock}
application/json- response
items?array<>next?string|nullmock?booleancurl -X GET 'https://example.com/api/v1/ads/adsets?accountId=string&adAccountId=string'Example Response
{ "items": [ {} ], "next": "string", "mock": true}PATCH /ads/campaigns/{id} PATCH
Update or pause a campaign: name, status (PAUSED, ACTIVE, ARCHIVED, DELETED), dailyBudget, lifetimeBudget, spendCap, stopTime. Pausing needs no confirm; ACTIVE and spend changes need confirm: 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