Ad performance
getAdsIndividual ads for one account over a date range, ranked by a metric, with parent campaign and ad set. Use getCreativesPerformance instead when you want creative copy, thumbnails and video hook/hold rates.
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": "getAds"
}
}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. | |
| endDate | No | End date, YYYY-MM-DD (inclusive). Defaults to yesterday in the ad account's time zone. | |
| network | No | Ad network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts). | |
| startDate | No | Start date, YYYY-MM-DD. Give both dates or neither (default: the last 7 complete days). Max 400 days. | |
| campaignId | No | Optional: only ads 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. |