Link Search Menu Expand Document

PDF

geo service

Platform API


The geo service provides geolocation values you can use for targeting.

The geo service has the following calls:

CallDescription
GET /geo/search?q=query_string&sort=field_name&order=sort_order&size=numberList 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=numberList 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.