Set location targeting
set_location_targetingApply location targeting: EITHER an admin-area selection (assoc_type + values, US: region/division/state/county/dma; UK: region/constituency/county/district) OR a postcode list (postcodes; [] clears). location_text is the free-text label manual panels see. Use convert_location_text first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Areas for assoc_type (from convert_location_text.admin.values). | |
| postcodes | No | Postcode list (max 50000); [] clears location targeting. | |
| survey_id | Yes | Survey id (see list_surveys, or the survey_id returned by a create tool). | |
| assoc_type | No | Admin-area type. | |
| location_text | No | Human-readable location description to store. |