Preview creative
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"response_type": "<string>",
"previews": [
{
"preview_id": "<string>"
}
],
"interactive_url": "<string>",
"expires_at": "<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": {}
}
}Creatives
Preview creative
Render a preview of a creative manifest via its format renderer. The creative must have a format_id and be published (assets uploaded) — otherwise the request fails with a validation error.
POST
/
campaigns
/
{campaignId}
/
creatives
/
{creativeId}
/
preview
Preview creative
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"response_type": "<string>",
"previews": [
{
"preview_id": "<string>"
}
],
"interactive_url": "<string>",
"expires_at": "<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
Campaign ID
Minimum string length:
1Creative manifest ID
Minimum string length:
1