Resolve targeting dimension text
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system": "nielsen_dma",
"locale": "en-US",
"query": "LA DMA",
"candidates": [
{
"system": "nielsen_dma",
"code": "803",
"name": "Los Angeles",
"locale": "en-US",
"confidence": 0.96,
"matched": "LA DMA",
"matchType": "alias"
}
],
"ambiguous": false
}{
"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
Resolve targeting dimension text
Resolve localized targeting text to code candidates within a specific dimension. Use the top candidate only when the response is not ambiguous.
GET
/
targeting
/
dimensions
/
{system}
/
resolve
Resolve targeting dimension text
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/targeting/dimensions/{system}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system": "nielsen_dma",
"locale": "en-US",
"query": "LA DMA",
"candidates": [
{
"system": "nielsen_dma",
"code": "803",
"name": "Los Angeles",
"locale": "en-US",
"confidence": 0.96,
"matched": "LA DMA",
"matchType": "alias"
}
],
"ambiguous": false
}{
"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": {}
}
}Path Parameters
Query Parameters
Response
Resolve targeting dimension text
Resolution candidates for localized targeting text within a dimension.