getCampaigns
Retrieve campaigns from a Meta ad account, filtering by status (active, paused, or all) and specifying the account by ID or name.
Instructions
Get campaigns from an ad account. Supports filtering by status (ACTIVE, PAUSED, ALL). Account can be specified by ID (act_XXX) or by name.
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": {
"accountId": "<accountId>"
},
"name": "getCampaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter campaigns by status. Default: ALL | ALL |
| accountId | Yes | Ad account ID (act_XXX) or account name (e.g., "Plannit") |