LinkedIn Ads Write
User wants to update multiple LinkedIn campaigns at once (bulk operations)
POST https://api.adspirer.ai/api/v1/tools/batch_update_linkedin_campaigns/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 |
|---|---|---|
campaign_ids | array required | List of campaign IDs to update (1-50) |
status | string optional | New status: ACTIVE, PAUSED, or ARCHIVED |
daily_budget | number optional | New daily budget for all campaigns |
total_budget | number optional | New total budget for all campaigns |
bid_strategy | string optional | Switch the campaign's bid strategy: 'maximum_delivery' (LinkedIn sets the bid; do not pass bid_amount), 'manual', 'cost_cap' or 'target_cost' (each needs bid_amount). cost_cap and target_cost are for Website Visit and Engagement campaigns; text ad campaigns support manual only. Not supported yet: switching strategy on an ACTIVE campaign (pause it first), or together with status=ACTIVE in the same call. If omitted, the strategy is unchanged. |
bid_amount | number optional | New bid in the campaign's currency. With bid_strategy: required for manual, cost_cap and target_cost. Alone: changes the bid of a campaign that is already on manual, cost cap or target cost; it is refused for a maximum-delivery campaign, where LinkedIn sets the bid. Must be inside LinkedIn's bid limits for the campaign's audience and not above the daily budget. At most 2 decimal places (a whole number for zero-decimal currencies). |
cost_type | string optional | Billing basis for bid_strategy='manual': CPC or CPM (default CPC; CPM for Brand Awareness). Leave out for the other strategies. CPV is not supported yet. |
account_id | string optional | LinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts. |
{
"arguments": {
"campaign_ids": [
"string"
],
"status": "string",
"daily_budget": 10.0,
"total_budget": 1.0,
"bid_strategy": "string",
"bid_amount": 1.0,
"cost_type": "string"
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for batch_update_linkedin_campaigns)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "batch_update_linkedin_campaigns"
}
{
"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_update_linkedin_campaigns"
}
{
"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_update_linkedin_campaigns",
"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