list_adsets
List ad sets in a Meta ad account, optionally filtered by campaign or status, supporting pagination.
Instructions
List ad sets in the ad account. Optionally filter by campaign or status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor for next page | |
| limit | No | Number of results (default 25) | |
| fields | No | Comma-separated fields to return | |
| status | No | Filter by status: ACTIVE, PAUSED, DELETED, ARCHIVED | |
| account_id | No | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| campaign_id | No | Filter by campaign ID |