list_campaigns
Retrieve paginated campaign lists for an ad account to locate campaign IDs for updates, ad groups, or insights. Filter by name to narrow results.
Instructions
List campaigns for the ad account. Paginated. Use returned campaign_id with get_campaign, update_campaign, create_ad_group, and insights tools. Filter by name if needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filter by campaign name (partial, min 3 chars). | |
| after | No | Cursor for forward pagination. | |
| limit | No | Max results 1–500. | |
| order | No | Sort order. | |
| before | No | Cursor for backward pagination. | |
| include | No | Optional includes, e.g., serving_issues. | |
| ad_account_id | No | Optional ad account ID override. Uses OPENAI_AD_ACCOUNT_ID env if not set. |