get_ads
Retrieve ad identifiers, names, statuses, and parent IDs for ads under a specified account, campaign, or ad set. Use this to inspect ad hierarchy.
Instructions
Get ads beneath an account, campaign, or ad-set parent.
Args: params: Parent object ID, maximum result count, and JSON or Markdown response format.
Returns:
A rendered {"success": bool, "data": list[object] | null, "error": string | null} envelope containing ad identifiers, names,
statuses, ad-set IDs, and campaign IDs.
Use this to inspect ads for a known hierarchy parent. Do not use it for performance metrics or to create, edit, pause, or delete ads.
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": {
"params": "<params>"
},
"name": "get_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |