Get ad sets
get_adsetsList Meta ad sets with budget, bidding, targeting, timestamps, and learning phase status; filter by campaign, account, or status.
Instructions
Lists ad sets, with a summary of budget, bidding, targeting, timestamps and learning phase (learning_phase.status: LEARNING/SUCCESS/FAIL, only populated while the ad set is actively delivering). Scope to a single campaign with campaign_id, or list all ad sets in an ad account.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_adsets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max ad sets to return (default 25). | |
| status | No | Filter to only these ad set statuses. | |
| client_id | No | Client identifier from accounts.config.json. Resolves the ad account and token automatically. Omit to use account_id + the default META_ACCESS_TOKEN instead. | |
| account_id | No | Ad account id, e.g. "act_1234567890". Required if client_id is omitted or its config entry has no ad_account_id. | |
| campaign_id | No | Restrict results to ad sets under this campaign. |