Meta ad sets with performance
meta_ad_setsRetrieve Meta ad set details—status, optimization goal, budget, and spend-sorted performance—for an ad account or campaign across a date range.
Instructions
Ad sets of one Meta ad account (optionally one campaign) with status, optimization goal, budget and performance for a date range, sorted by spend.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>"
},
"name": "meta_ad_sets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start date, YYYY-MM-DD, inclusive. | |
| until | No | End date, YYYY-MM-DD, inclusive. | |
| preset | No | Date preset in the ad account time zone (default last_30d; last_N excludes today). Use either preset or since+until. | |
| status | No | enabled = only items Meta reports as ACTIVE; not_removed (default) = Meta's default listing, which leaves out deleted items. | |
| max_rows | No | Maximum rows to return (default 50, max 500). | |
| account_id | Yes | Meta ad account ID, e.g. act_1234567890 (the act_ prefix is optional). | |
| campaign_id | No | Optional campaign ID to filter by. |