create_linkedin_campaign_group

LinkedIn Ads Write

User wants to create a NEW LinkedIn campaign group (folder) to organize campaigns

Endpoint

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

Headers

Description

User wants to create a NEW LinkedIn campaign group (folder) to organize campaigns. Create a campaign group with a name, status, schedule, and optional total budget/objective. Campaigns are then added to the group with add_linkedin_campaign_to_group. Parameters: - name: Name for the new group (required) - status: ACTIVE or DRAFT (default DRAFT — groups can only be created ACTIVE or DRAFT) - start_date: ISO date, defaults to now (must be future to schedule) - end_date: ISO date — REQUIRED if total_budget is set - total_budget: optional total budget shared across the group (currency must match account) - currency: currency for total_budget (default USD) - objective_type: optional immutable objective (LEAD_GENERATION, WEBSITE_VISIT, BRAND_AWARENESS, etc.) - account_id: Optional LinkedIn Ad Account ID Example Prompts: - "Create a new LinkedIn campaign group called Q3 B2B SaaS" - "Make a campaign group for my lead gen campaigns" - "Set up a campaign group with a $5000 total budget through end of September" Execution time: 2-3 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
namestring requiredName for the new campaign group (max 200 bytes UTF-8).
statusstring optionalInitial status: ACTIVE or DRAFT (default DRAFT). Groups can only be created ACTIVE or DRAFT; other statuses are reached via update. default: "DRAFT"
start_datestring optionalStart date in ISO format (e.g. 2026-07-10). Defaults to now if omitted. Must be in the future for the group to be schedulable.
end_datestring optionalEnd date in ISO format. REQUIRED if total_budget is set.
total_budgetnumber optionalOptional total budget shared across all campaigns in the group. If set, end_date is required and currency must match the account currency.
currencystring optionalCurrency code for total_budget (must match the account's currency). Default USD. default: "USD"
objective_typestring optionalOptional immutable objective for the group (e.g. LEAD_GENERATION, WEBSITE_VISIT, BRAND_AWARENESS, ENGAGEMENT, VIDEO_VIEWS, WEBSITE_CONVERSIONS, JOB_APPLICANTS). Campaigns in the group inherit this.
account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

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

Example responses

200 — Success

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

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

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": "create_linkedin_campaign_group",
  "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