add_location_targets
Target or exclude specific Microsoft LocationIds on a campaign to refine ad delivery. Optionally set bid adjustments for targeted locations.
Instructions
Target (or exclude) Microsoft LocationIds on a campaign.
Resolve ZIPs to LocationIds first with resolve_postal_codes.
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>",
"location_ids": "<location_ids>"
},
"name": "add_location_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | When true, exclude these locations instead of targeting them. | |
| campaign_id | Yes | The campaign id. | |
| location_ids | Yes | Microsoft LocationIds to target/exclude. | |
| bid_adjustment | No | Percent bid modifier for targeted locations (ignored when exclude). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| ids | No | ||
| message | Yes | ||
| partial_errors | No |