set_ranking_location
Set the market every tracked keyword is ranked in: a country, state or city, plus language and device. Pass location ("India", "Hyderabad", "McKinney, Texas") and it is looked up; or a location_code. Brands with no location are ranked in the country their domain names (.in, .com.au, .co.uk); a .com/.io with none set must set one before ranking checks run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | "desktop" or "mobile", default "desktop" | |
| site_id | Yes | The brand/site ID | |
| location | No | Country, state or city name to look up, e.g. "India" or "Hyderabad" | |
| language_code | No | Default "en" | |
| location_code | No | Exact location code instead of location, e.g. 2356 India, 2840 United States | |
| location_name | No | Human label, e.g. "United States" — inferred from location_code if omitted | |
| location_type | No | e.g. "Country" — inferred from location_code if omitted |