list_adsets
Retrieve ad sets by account or campaign ID. Specify ad_account_id for all adsets in account or campaign_id for adsets of one campaign. Returns key details like id, name, status, budget, bid, optimization goal, and targeting.
Instructions
List ad sets. Pass either ad_account_id (lists all adsets in account) OR campaign_id (lists adsets of one campaign). Returns id, name, campaign_id, status, daily_budget, bid_amount, billing_event, optimization_goal, targeting, is_dynamic_creative.
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": "list_adsets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_account_id | No | 'act_123' or '123' | |
| campaign_id | No | ||
| limit | No | ||
| after | No | ||
| effective_status | No | ||
| fields | No |