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.
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. |