batch_create_linkedin_campaign_groups

LinkedIn Ads Write

User wants to create MULTIPLE LinkedIn campaign groups at once

Endpoint

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

Headers

Description

User wants to create MULTIPLE LinkedIn campaign groups at once. Create several campaign groups in a single call (all under the same ad account). Each group takes the same fields as create_linkedin_campaign_group. Parameters: - groups: list of group objects, each with name (required), status, start_date, end_date, total_budget, currency, objective_type - account_id: Optional LinkedIn Ad Account ID Returns a per-group success/failure breakdown. Example Prompts: - "Create campaign groups for Q1, Q2, Q3, and Q4" - "Set up separate campaign groups for each of my product lines" Execution time: 3-6 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
groupsarray requiredList of campaign groups to create (all under the same account).
account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "groups": [
      {
        "name": "string",
        "status": "DRAFT",
        "start_date": "string",
        "end_date": "string",
        "total_budget": 1.0,
        "currency": "USD",
        "objective_type": "string"
      }
    ],
    "account_id": "string"
  }
}

Example responses

200 — Success

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