Get Campaigns
get_campaignsRetrieve campaigns for an ad account, with optional filters for name, status, and pagination to isolate the ones you need.
Instructions
Get campaigns for an ad account with optional filtering.
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": {
"ad_account_id": "<ad_account_id>"
},
"name": "get_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Optional search query to filter campaigns by name | |
| page_no | No | Page number (default: 1) | |
| page_size | No | Results per page - options: 5, 10, 20, 50, 100, 200, 500 (default: 50) | |
| ad_account_id | Yes | The ad account ID to fetch campaigns for | |
| online_status | No | Optional status filter - values: WARNING, INACTIVE, ACTIVE, DELETED |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |