geo service
The geo
service provides geolocation values you can use for targeting.
The geo
service has the following calls:
Call | Description |
---|---|
GET /geo/search?q=query_string&sort=field_name&order=sort_order&size=number | List geolocation search results for the specified query string. Parameters: • order (Optional). The sort order, such as order=asc for ascending and order=desc for descending.• q (Required). The query string, such as q=us.• size (Recommended). The maximum number of matching results to return, such as size=100.• sort (Optional). The field to sort by, such as sort=city. |
POST /geo/search?q=query_string&sort=field_name&order=sort_order&size=number | List geolocation search results for the specified query string. Parameters: • order (Optional): The field to sort by, such as sort=city.• q (Required): The query string, such as q=us• size (Recommended): The maximum number of matching results to return. We recommend you limit the results of your queries, such as size=100.• sort (Optional): The field to sort by, such as sort=city. |
See also Geographic Targeting in the OpenX UI help.