LinkedIn Ads: Update Campaign Targeting
linkedin_update_campaign_targetingAdd, remove or replace targeting entities on one LinkedIn campaign in the user's own ad account, facet by facet (locations, titles, seniorities, industries, employers, staffCountRanges, skills, ...), on the include or the exclude side. Every other part of the campaign's targeting is preserved exactly; a targeting expression that cannot be edited without rewriting it is refused, and so is a result with no included audience or with fewer than 300 members, which LinkedIn will not serve. Entities are URNs: resolve names with linkedin_search_targeting_entities and read the current targeting with linkedin_get_campaign. LinkedIn does not allow targeting that discriminates by age, gender or other protected characteristics for housing, employment, education or credit ads. Changing targeting changes who sees the ads, so get the user's approval first. Supports dry_run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>",
"changes": "<changes>"
},
"name": "linkedin_update_campaign_targeting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Targeting edits to apply, in order. | |
| dry_run | No | true: read the object and report the field-level changes this call would make, changing nothing. Default false. Show the user the proposal and get their approval before calling without dry_run. | |
| campaign_id | Yes | Numeric campaign id (or its urn:li:sponsoredCampaign URN), from linkedin_list_campaigns. | |
| ad_account_id | No | LinkedIn ad account to change: numeric account id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | True when the call only previewed the change. | |
| changed | Yes | True only when this call changed LinkedIn Ads. | |
| changes | Yes | Field-level changes: made, or proposed on a dry run. | |
| currency | No | ISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then. | |
| objectId | Yes | Numeric id of the object. | |
| verified | No | Whether LinkedIn's read-back holds every requested value; null when nothing was written or the read-back failed. | |
| warnings | Yes | Side effects and limits the user should hear about. | |
| operation | Yes | What happened: updated, no_change, or dry_run. | |
| objectName | No | The object's name, when it has one. | |
| objectType | Yes | Kind of object addressed. | |
| adAccountId | Yes | LinkedIn ad account the object is in. | |
| audienceSize | No | LinkedIn's approximate member count for the resulting targeting; null when it could not be counted. |