update_linkedin_campaign

LinkedIn Ads Write

User wants to modify LinkedIn campaign settings

Endpoint

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

Headers

Description

User wants to modify LinkedIn campaign settings. Update campaign budget, schedule, targeting, or other settings. Updatable Fields: - name: Campaign name - daily_budget: Daily budget in account currency (min 10) - total_budget: Lifetime budget - status: ACTIVE, PAUSED, or ARCHIVED - start_date / end_date: Schedule - locations, industries, seniorities, job_titles, company_sizes: Targeting - bid_amount: New bid, for a campaign on manual, cost cap or target cost bidding - bid_strategy (+ bid_amount, cost_type): Switch bid strategy: maximum_delivery, manual, cost_cap, target_cost Bid changes: - bid_amount alone changes the bid and keeps the strategy. It is refused on a maximum-delivery campaign, where LinkedIn sets the bid; pass bid_strategy to switch. - A bid above the daily budget, or outside LinkedIn's bid limits for the campaign's audience, is rejected with the reason. If LinkedIn's bid limits cannot be read, the bid is not changed; try again. - After the change the campaign is read back from LinkedIn and the stored strategy, cost type, bid and bid currency are compared with what was sent; the call fails if they differ. - Not supported yet: switching strategy on an ACTIVE campaign (pause it first), or together with status=ACTIVE in the same call; cost cap and target cost outside Website Visit and Engagement campaigns; CPV bidding. - To see a campaign's current bid and LinkedIn's suggested bid, use get_linkedin_campaign_structure with include_bid_guidance. Parameters: - campaign_id: Campaign ID to update (required) - account_id: Optional LinkedIn Ad Account ID - [any updatable field]: New value Execution time: 2-3 seconds (5-10 seconds with a bid change)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredCampaign ID to update. Accepts either `campaign_id` or `id` from upstream tool responses.
account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.
namestring optionalNew campaign name
daily_budgetnumber optionalNew daily budget in account currency (minimum 10)
total_budgetnumber optionalNew total/lifetime budget
statusstring optionalNew status: ACTIVE, PAUSED, or ARCHIVED
start_datestring optionalNew start date in ISO format (e.g., '2025-01-15T00:00:00Z')
end_datestring optionalNew end date in ISO format
locationsarray optionalNew list of location URNs (replaces existing)
industriesarray optionalNew list of industry URNs
senioritiesarray optionalNew list of seniority URNs
job_titlesarray optionalNew list of job title URNs
company_sizesarray optionalNew list of company size URNs
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.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "account_id": "string",
    "name": "string",
    "daily_budget": 10.0,
    "total_budget": 1.0,
    "status": "string",
    "start_date": "string"
  }
}

Example responses

200 — Success

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

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

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