List Meta ad campaigns

meta_ads_list_campaignsRead-only

Every campaign in a Meta ad account with its status, recent changes and any automated rules acting on it.

When to use it: You need the campaign list itself. For results, use Get performance report or Get insights.

Full tool description

List campaigns for a Meta ad account with status filtering, name search, single/multi-campaign lookup by ID, and pagination. Entities may optionally include recent activities, and optionally automated rules (set include_rules=true to see which rules affect each campaign).

Ask your assistant

  • Which campaigns are live right now?
  • Do any automated rules affect our campaigns?

Parameters

NameTypeRequiredDescription
account_id string Required The ad account ID (with or without act_ prefix)minLength: 1
Optional parameters (11)
NameTypeRequiredDescription
status array Optional Filter by configured campaign status (user-set): ACTIVE, PAUSED, DELETED, ARCHIVED
effective_status array Optional Filter by Meta-computed serving status: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES
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
include_rules boolean Optional Include automated rules (from adrules_library) that affect each entity
connection_id string Optional Optional ID of a specific connection to use for this call. Omit to use the actor's default connection for this network. Call <platform>_list_connections to discover available connection IDs.

Call it directly

For developers wiring Hopkin into their own client or scripts. Your assistant makes this call for you.

IdempotentOpen-world
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "meta_ads_list_campaigns",
    "arguments": {
      "account_id": "123456789"
    }
  }
}

Examples

List all

{
  "account_id": "123456789"
}

hopkin meta campaigns list --account 123456789

Filter by status

{
  "account_id": "123456789",
  "status": [
    "ACTIVE",
    "PAUSED"
  ]
}

hopkin meta campaigns list --account 123456789 --status ACTIVE,PAUSED

Filter by serving status

{
  "account_id": "123456789",
  "effective_status": [
    "WITH_ISSUES"
  ]
}

hopkin meta campaigns list --account 123456789 --effective-status WITH_ISSUES

Get by ID

{
  "account_id": "123456789",
  "campaign_id": "23842453456789"
}

hopkin meta campaigns list --account 123456789 --campaign 23842453456789

Get multiple by IDs

{
  "account_id": "123456789",
  "campaign_ids": [
    "23842453456789",
    "23842453456790"
  ]
}

hopkin meta campaigns list --account 123456789 --campaign-ids 23842453456789,23842453456790

Search by name

{
  "account_id": "123456789",
  "search": "Summer"
}

hopkin meta campaigns list --account 123456789 --search Summer

Paginate

{
  "account_id": "123456789",
  "limit": 10
}

hopkin meta campaigns list --account 123456789 --limit 10