LinkedIn Ads Write
User wants to add or remove targeting criteria from a LinkedIn campaign
POST https://api.adspirer.ai/api/v1/tools/update_linkedin_campaign_targeting/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_id | string required | Campaign ID to update targeting for |
add_locations | array optional | Location URNs to ADD to targeting |
remove_locations | array optional | Location URNs to REMOVE from targeting |
add_industries | array optional | Industry URNs to ADD |
remove_industries | array optional | Industry URNs to REMOVE |
add_seniorities | array optional | Seniority URNs to ADD |
remove_seniorities | array optional | Seniority URNs to REMOVE |
add_job_titles | array optional | Job title URNs to ADD |
remove_job_titles | array optional | Job title URNs to REMOVE |
add_company_sizes | array optional | Company size URNs to ADD |
remove_company_sizes | array optional | Company size URNs to REMOVE |
add_skills | array optional | Skill URNs to ADD |
remove_skills | array optional | Skill URNs to REMOVE |
add_job_functions | array optional | Job function URNs to ADD |
remove_job_functions | array optional | Job function URNs to REMOVE |
add_interests | array optional | Interest URNs to ADD |
remove_interests | array optional | Interest URNs to REMOVE |
add_degrees | array optional | Degree URNs to ADD |
remove_degrees | array optional | Degree URNs to REMOVE |
add_fields_of_study | array optional | Field of study URNs to ADD |
remove_fields_of_study | array optional | Field of study URNs to REMOVE |
add_employers | array optional | Employer URNs to ADD |
remove_employers | array optional | Employer URNs to REMOVE |
add_member_groups | array optional | LinkedIn group URNs to ADD (include-only) |
remove_member_groups | array optional | LinkedIn group URNs to REMOVE |
add_age_ranges | array optional | Age range URNs to ADD (include-only) |
remove_age_ranges | array optional | Age range URNs to REMOVE |
add_genders | array optional | Gender URNs to ADD (include-only) |
remove_genders | array optional | Gender URNs to REMOVE |
add_schools | array optional | School URNs to ADD |
remove_schools | array optional | School URNs to REMOVE |
add_member_behaviors | array optional | Member behavior URNs to ADD |
remove_member_behaviors | array optional | Member behavior URNs to REMOVE |
add_years_of_experience | array optional | Years of experience URNs to ADD |
remove_years_of_experience | array optional | Years of experience URNs to REMOVE |
add_followed_companies | array optional | Followed company URNs to ADD |
remove_followed_companies | array optional | Followed company URNs to REMOVE |
add_buyer_groups | array optional | Buyer group URNs to ADD (API 2026-03+) |
remove_buyer_groups | array optional | Buyer group URNs to REMOVE |
replace_all | boolean optional | If True, replaces ALL targeting. If False, adds/removes incrementally. default: false |
account_id | string optional | LinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts. |
{
"arguments": {
"campaign_id": "<campaign_id>",
"add_locations": [
"string"
],
"remove_locations": [
"string"
],
"add_industries": [
"string"
],
"remove_industries": [
"string"
],
"add_seniorities": [
"string"
],
"remove_seniorities": [
"string"
]
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for update_linkedin_campaign_targeting)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "update_linkedin_campaign_targeting"
}
{
"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_targeting"
}
{
"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_targeting",
"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