resolve_postal_codes
Resolve ZIP or postal codes to Microsoft LocationIds for location targeting in Microsoft Advertising.
Instructions
Resolve ZIP / postal codes to Microsoft LocationIds (for location targeting).
Downloads and caches Microsoft's geo-locations file on first use.
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": {
"postal_codes": "<postal_codes>"
},
"name": "resolve_postal_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postal_codes | Yes | ZIP / postal codes to resolve, e.g. ["98101", "98052"]. | |
| language_locale | No | Geo file locale (default "en"). | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |