meta_ads_list_campaigns

List Meta Ad Campaigns

Meta

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, optionally recent activities, and optionally automated rules (set include_rules=true to see which rules affect each campaign).

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"
    }
  }
}

Parameters

NameTypeRequiredDescription
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 (10)
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

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

Filter by serving status

{
  "account_id": "123456789",
  "effective_status": [
    "WITH_ISSUES"
  ],
  "reason": "Find campaigns with delivery issues"
}

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

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