Geotargeting API Reference¶
Note
If you use the APIs provided here, you are subject to the API Terms of Use, and Service Privacy Notice
Note
We’ve introduced API keys, please read Migrating to API Keys
Description¶
NextRoll Geotargeting API 1.0 by https://developers.nextroll.com/
API for fetching, creating, and editing NextRoll geotargets
NextRoll API Documentation
List of Operations¶
Operations¶
-
GET/geo/api/search/v2/geo¶ Searching through Geotargets
Parameters:
Query Parameters¶ Name
Required
Type
Description
geo_typesFalse
string
Comma-delimited list of types of geotargeting types to return One of:
city,postal_code,country,metro,region.starts_withFalse
string
Search text of the beginning of the geotarget location name
countFalse
integer
Number of geotargets to limit results to
pageFalse
integer
Page to request for paginated results when the number of results are greater than the count
apikeyFalse
string
Required if using Personal Access Tokens (PAT). The value is the Client ID you received when you registered your application on the NextRoll Developer site
Responses:
- 200
A list of matching geotargets. Use
countandpageto iterate through the results until you receive an emptyresultslist.Returns
GeoResponse
Definitions¶
-
GeoResponse¶ - Type
object
-
boundaries List of metro boundaries.
- Type
array of items
-
country Country that the metro belongs to
- Type
object
-
eid EID of geotarget
- Type
string
- MaxLength
22
- MinLength
22
- Pattern
[A-Z0-9]{22}
-
iso2 ISO 3166 Alpha-2 country code
- Type
string
- MaxLength
2
- MinLength
2
- Pattern
[A-Z]{2}
-
iso3 ISO 3166 Alpha-3 country code
- Type
string
- MaxLength
3
- MinLength
3
- Pattern
[A-Z]{3}
-
name Name of geotarget
- Type
string
-
name_localized Localized name of geotarget
- Type
string
-
type Type of geotarget
- Type
string
- Enum
country,metro,region,city,postalcode