list_linkedin_campaign_groups

LinkedIn Ads Read

User wants to see their LinkedIn campaign groups (also called campaign folders or groups)

Endpoint

POST https://api.adspirer.ai/api/v1/tools/list_linkedin_campaign_groups/execute

Headers

Description

User wants to see their LinkedIn campaign groups (also called campaign folders or groups). List all campaign groups with their status, budget, and campaign count. Parameters: - account_id: Optional LinkedIn Ad Account ID - status_filter: Filter by status (ACTIVE, PAUSED, ARCHIVED, or ALL) Returns: - All campaign groups with name, ID, status, budget, and campaign count Example Prompts: - "Show me my LinkedIn campaign groups" - "List all campaign groups" - "What campaign groups do I have?" - "Show active campaign groups" Execution time: 2-3 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.
status_filterstring optionalFilter by status. Default: 'ACTIVE,PAUSED,DRAFT' (excludes deleted/removed clutter). Options: ACTIVE, PAUSED, DRAFT, ARCHIVED, or ALL (includes PENDING_DELETION, REMOVED). default: "ACTIVE,PAUSED,DRAFT"

Example request

{
  "arguments": {
    "account_id": "string",
    "status_filter": "ACTIVE,PAUSED,DRAFT"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for list_linkedin_campaign_groups)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "list_linkedin_campaign_groups"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "list_linkedin_campaign_groups"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "list_linkedin_campaign_groups",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai