Ad set performance
getAdSetsAd sets for one account, ranked by a metric, with budget and parent campaign. Ad-set metrics here are Meta's last-90-day totals from the last sync, NOT lifetime and NOT a chosen date range (the window field says "last_90d"). For a date range use getInsights with breakdown "adset".
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": {
"adAccountId": "<adAccountId>"
},
"name": "getAdSets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default 25, hard cap 100). | |
| sortBy | No | Ranking metric. Cost metrics (cpa, cpc, cpm) rank cheapest first; all others rank highest first. Rows where the metric is undefined (null, e.g. a CPA with no conversions) rank last. | |
| status | No | Filter by delivery status, e.g. "ACTIVE", "PAUSED", "ARCHIVED". Omit or "all" for every status. | |
| network | No | Ad network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts). | |
| campaignId | No | Optional: only ad sets under this ROAZ campaign id. | |
| adAccountId | Yes | Which account to query: the numeric ROAZ ad account id, a Meta act_ id, or a client name (fuzzy-matched). Required. |