List geo metros
curl --request GET \
--url https://api.interchange.io/api/v2/buyer/targeting/geo-metros \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/targeting/geo-metros"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/targeting/geo-metros', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system": "nielsen_dma",
"locale": "en-US",
"entries": [
{
"code": "532",
"name": "Albany-Schenectady-Troy"
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Campaigns
List geo metros
List geo metro code-name pairs for buyer-side targeting resolution and display. Send only numeric string codes in campaign constraints.geo_metros; request fields=geo_metro_names on campaign reads when display labels are needed.
GET
/
targeting
/
geo-metros
List geo metros
curl --request GET \
--url https://api.interchange.io/api/v2/buyer/targeting/geo-metros \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/targeting/geo-metros"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/targeting/geo-metros', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system": "nielsen_dma",
"locale": "en-US",
"entries": [
{
"code": "532",
"name": "Albany-Schenectady-Troy"
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Query Parameters
Targeting system to look up. Defaults to nielsen_dma; currently only nielsen_dma is supported.
Available options:
nielsen_dma Example:
"nielsen_dma"
Response
List geo metros
Geo metro codes and English display labels for buyer-side display and input resolution.
Targeting system these entries belong to
Available options:
nielsen_dma Example:
"nielsen_dma"
Locale for the display labels. Currently only English labels are supported.
Available options:
en-US Example:
"en-US"
Known code-name pairs for this system
Show child attributes
Show child attributes