meta_ads_list_campaigns
List Meta Ad Campaigns
Description
List campaigns for a Meta ad account with status filtering, name search, single/multi-campaign lookup by ID, and pagination. Entities may include _stored_preferences and optionally recent activities.
Read-onlyIdempotentOpen-world
Usage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "meta_ads_list_campaigns",
"arguments": {
"account_id": "123456789",
"reason": "List campaigns"
}
}
}
hopkin meta campaigns list
| Flag | Type | Required | Description |
|---|---|---|---|
--account | string | Required | The ad account ID (with or without act_ prefix) |
--status | array | Optional | Filter by campaign status: ACTIVE, PAUSED, DELETED, ARCHIVED |
--limit | integer | Optional | Number of campaigns per page (default: 20, max: 100) |
--cursor | string | Optional | Pagination cursor from previous response |
--refresh | boolean | Optional | Force fresh data from Meta API instead of using cache. Defaults to false (cache-first). Only set to true when you need real-time data. |
--campaign | string | Optional | Get a specific campaign by ID. When provided, returns only that campaign and ignores other filters/pagination. |
--campaign-ids | array | Optional | Get multiple campaigns by ID. Mutually exclusive with campaign_id. When provided, ignores other filters/pagination. |
--search | string | Optional | Search campaigns by name (case-insensitive partial match) |
--include-activities | boolean | Optional | Include recent activity log (last 7 days of changes) for each entity |
{
"mcpServers": {
"meta-ads": {
"url": "https://mcp.hopkin.ai/meta-ads/mcp",
"transport": "sse"
}
}
}
- List all
- Filter by status
- Get by ID
- Get multiple by IDs
- Search by name
- Paginate
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Required | The ad account ID (with or without act_ prefix)minLength: 1 |
reason |
string |
Required | Why this tool call is neededminLength: 1, maxLength: 500 |
Optional parameters (8)
| Name | Type | Required | Description |
|---|---|---|---|
status |
array |
Optional | Filter by campaign status: ACTIVE, PAUSED, DELETED, ARCHIVED |
limit |
integer |
Optional | Number of campaigns per page (default: 20, max: 100)min: 1, max: 100 |
cursor |
string |
Optional | Pagination cursor from previous responseminLength: 1 |
refresh |
boolean |
Optional | Force fresh data from Meta API instead of using cache. Defaults to false (cache-first). Only set to true when you need real-time data. |
campaign_id |
string |
Optional | Get a specific campaign by ID. When provided, returns only that campaign and ignores other filters/pagination.minLength: 1 |
campaign_ids |
array |
Optional | Get multiple campaigns by ID. Mutually exclusive with campaign_id. When provided, ignores other filters/pagination. |
search |
string |
Optional | Search campaigns by name (case-insensitive partial match)minLength: 1 |
include_activities |
boolean |
Optional | Include recent activity log (last 7 days of changes) for each entity |
Examples
List all
{
"account_id": "123456789",
"reason": "List campaigns"
}
hopkin meta campaigns list --account 123456789
Filter by status
{
"account_id": "123456789",
"status": [
"ACTIVE",
"PAUSED"
],
"reason": "List active/paused campaigns"
}
hopkin meta campaigns list --account 123456789 --status ACTIVE,PAUSED
Get by ID
{
"account_id": "123456789",
"campaign_id": "23842453456789",
"reason": "Get specific campaign"
}
hopkin meta campaigns list --account 123456789 --campaign 23842453456789
Get multiple by IDs
{
"account_id": "123456789",
"campaign_ids": [
"23842453456789",
"23842453456790"
],
"reason": "Get specific campaigns"
}
hopkin meta campaigns list --account 123456789 --campaign-ids 23842453456789,23842453456790
Search by name
{
"account_id": "123456789",
"search": "Summer",
"reason": "Find summer campaigns"
}
hopkin meta campaigns list --account 123456789 --search Summer
Paginate
{
"account_id": "123456789",
"limit": 10,
"reason": "First page of campaigns"
}
hopkin meta campaigns list --account 123456789 --limit 10