LinkedIn Ads Write
User wants to create a NEW LinkedIn campaign group (folder) to organize campaigns
POST https://api.adspirer.ai/api/v1/tools/create_linkedin_campaign_group/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
name | string required | Name for the new campaign group (max 200 bytes UTF-8). |
status | string optional | Initial status: ACTIVE or DRAFT (default DRAFT). Groups can only be created ACTIVE or DRAFT; other statuses are reached via update. default: "DRAFT" |
start_date | string optional | Start 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_date | string optional | End date in ISO format. REQUIRED if total_budget is set. |
total_budget | number optional | Optional total budget shared across all campaigns in the group. If set, end_date is required and currency must match the account currency. |
currency | string optional | Currency code for total_budget (must match the account's currency). Default USD. default: "USD" |
objective_type | string optional | Optional 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_id | string optional | LinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts. |
{
"arguments": {
"name": "string",
"status": "DRAFT",
"start_date": "string",
"end_date": "string",
"total_budget": 1.0,
"currency": "USD",
"objective_type": "string"
}
}
{
"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"
}
{
"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"
}
{
"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"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: LinkedIn Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai