search_linkedin_campaign_groups

LinkedIn Ads Read

User wants to find specific LinkedIn campaign groups by name, status, or ID

Endpoint

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

Headers

Description

User wants to find specific LinkedIn campaign groups by name, status, or ID. Search campaign groups with optional name, status, and id filters. More targeted than list_linkedin_campaign_groups when the user knows what they're looking for. Parameters: - name: Exact group name to search for - status_filter: single or comma-joined statuses (ACTIVE, PAUSED, DRAFT, ARCHIVED, etc., or ALL) - group_ids: optional list of group IDs to look up - test: true/false to restrict to test or non-test groups - account_id: Optional LinkedIn Ad Account ID Example Prompts: - "Find the campaign group named Q3 B2B SaaS" - "Search for my draft campaign groups" - "Look up campaign group 12345" Execution time: 2-3 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
namestring optionalExact group name to search for.
status_filterstring optionalFilter by status (single or comma-joined). Options: ACTIVE, PAUSED, DRAFT, ARCHIVED, CANCELED, PENDING_DELETION, REMOVED, or ALL.
group_idsarray optionalOptional list of campaign group IDs (numeric or URN) to look up.
testboolean optionalRestrict to test (true) or non-test (false) groups. Omit for both.
account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "name": "string",
    "status_filter": "string",
    "group_ids": [
      "string"
    ],
    "test": false,
    "account_id": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for search_linkedin_campaign_groups)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "search_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": "search_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": "search_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