curl --request GET \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/inventory/selectors \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/inventory/selectors"
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/storefront/esa/{esaId}/inventory/selectors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Search inventory selectors for an ad server source
Search one ad-server selector dimension (ad units, placements, etc.) for inventory that can back a product. selectorType is required; optional mediaType and environmentType filters are forwarded to ad-server sources that support media/environment-scoped inventory browsing. The response body is the upstream adapter’s paginated payload and varies by ad server.
curl --request GET \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/inventory/selectors \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/inventory/selectors"
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/storefront/esa/{esaId}/inventory/selectors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Ad server source connection id. The wire field remains esaId for API compatibility.
0 < x <= 9007199254740991123
Query Parameters
Which ad-server selector dimension to search (adapter-defined, e.g. ad_unit, placement). Required.
Selector name search.
Restrict to children of this selector.
0 < x <= 100Restrict selectors to inventory matching the requested media type.
display, video Restrict selectors to inventory matching the requested ad-server environment.
BROWSER, VIDEO_PLAYER Response
Search inventory selectors for an ad server source