set_location_intent
Set a campaign's location intent to choose between targeting only people physically in the location or also those searching for or viewing pages about it.
Instructions
Set who sees a campaign's ads relative to its targeted locations (location intent).
Updates the campaign's single LocationIntent criterion in place (created by Microsoft with a default of "PeopleInOrSearchingForOrViewingPages"). Read the current value first with get_location_intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | The campaign id. | |
| intent_option | Yes | "PeopleIn" (presence — only people physically in/regularly in the targeted locations) or "PeopleInOrSearchingForOrViewingPages" (people in, searching for, or viewing pages about them; Microsoft's default). The legacy "search-interest-only" option was deprecated by Microsoft in April 2024. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| ids | No | ||
| message | Yes | ||
| partial_errors | No |