batch_update_linkedin_campaigns

LinkedIn Ads Write

User wants to update multiple LinkedIn campaigns at once (bulk operations)

Endpoint

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

Headers

Description

User wants to update multiple LinkedIn campaigns at once (bulk operations). Batch update status, budget, or other settings across multiple campaigns simultaneously. Parameters: - campaign_ids: List of campaign IDs to update (1-50, required) - status: New status for all campaigns (ACTIVE, PAUSED, or ARCHIVED) - daily_budget: New daily budget for all campaigns (minimum $10) - total_budget: New total budget for all campaigns - bid_amount: New bid for all campaigns, each in its own currency (campaigns on manual, cost cap or target cost bidding) - bid_strategy (+ bid_amount, cost_type): New bid strategy for all campaigns (maximum_delivery, manual, cost_cap, target_cost) - account_id: Optional LinkedIn Ad Account ID Bid changes are checked per campaign with the same rules as update_linkedin_campaign (bid limits, read-back after the update, the same not-yet-supported cases). A campaign whose bid change is refused is listed under Failed Updates with the reason; the others still update. Example Prompts: - "Pause all my LinkedIn campaigns" - "Set all campaigns to $20/day budget" - "Archive campaigns 123, 456, and 789" - "Activate these 5 campaigns" - "Update budget for all my LinkedIn ads" - "Bulk pause my campaigns" Execution time: 5-15 seconds (depends on number of campaigns)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idsarray requiredList of campaign IDs to update (1-50)
statusstring optionalNew status: ACTIVE, PAUSED, or ARCHIVED
daily_budgetnumber optionalNew daily budget for all campaigns
total_budgetnumber optionalNew total budget for all campaigns
bid_strategystring optionalSwitch 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_amountnumber optionalNew 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_typestring optionalBilling 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_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "campaign_ids": [
      "string"
    ],
    "status": "string",
    "daily_budget": 10.0,
    "total_budget": 1.0,
    "bid_strategy": "string",
    "bid_amount": 1.0,
    "cost_type": "string"
  }
}

Example responses

200 — Success

{
  "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"
}

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_update_linkedin_campaigns"
}

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_update_linkedin_campaigns",
  "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