Set default advertiser
curl --request PUT \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advertiserId": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser"
payload = { "advertiserId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({advertiserId: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"advertiserId": "<string>"
}{
"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": {}
}
}Storefront Ad Server Buyer Routing
Set default advertiser
Set the catch-all advertiser every unmatched buyer routes to, for whichever ad server backs the embedded sales agent. Each adapter stores its default in its own place — Google Ad Manager on the tenant, FreeWheel and AdsWizz on their adapter config — and this routes the write accordingly. Rejected for SpringServe, which models demand as demand tags and has no advertiser to route to. Pair with GET /esa//advertisers to find the id.
PUT
/
esa
/
{esaId}
/
default-advertiser
Set default advertiser
curl --request PUT \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advertiserId": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser"
payload = { "advertiserId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({advertiserId: '<string>'})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/default-advertiser', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"advertiserId": "<string>"
}{
"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.
Required range:
0 < x <= 9007199254740991Example:
123
Body
application/json
Required string length:
1 - 64Response
Set default advertiser