Stash brought creatives before an advertiser is chosen
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/creatives/stash \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assets": [
{
"data_url": "<string>",
"name": "<string>",
"declared_sizes": [
{
"width": 4503599627370495,
"height": 4503599627370495
}
]
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/creatives/stash"
payload = { "assets": [
{
"data_url": "<string>",
"name": "<string>",
"declared_sizes": [
{
"width": 4503599627370495,
"height": 4503599627370495
}
]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assets: [
{
data_url: '<string>',
name: '<string>',
declared_sizes: [{width: 4503599627370495, height: 4503599627370495}]
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/creatives/stash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"files": [
{
"file_id": "<string>",
"filename": "<string>",
"media_kind": "image",
"preview_url": "<string>"
}
],
"recent_campaigns": [
{
"campaign_id": "<string>",
"name": "<string>",
"created_label": "<string>"
}
],
"advertiser_name": "<string>",
"advertisers": [
{
"advertiser_id": "<string>",
"name": "<string>"
}
],
"selected_advertiser_id": "<string>",
"saved_as": "<string>",
"collection_id": "<string>",
"skipped_files_notice": "<string>",
"skipped_files": [
"<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
Stash brought creatives before an advertiser is chosen
Persists uploaded creatives customer-scoped BEFORE an advertiser is named, so the upload survives across turns. Returns the saved creatives (with ids) in the same shape as the creative-intent picker; pass those ids to getCreativeIntent as creative_ids once the advertiser is known.
POST
/
creatives
/
stash
Stash brought creatives before an advertiser is chosen
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/creatives/stash \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assets": [
{
"data_url": "<string>",
"name": "<string>",
"declared_sizes": [
{
"width": 4503599627370495,
"height": 4503599627370495
}
]
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/creatives/stash"
payload = { "assets": [
{
"data_url": "<string>",
"name": "<string>",
"declared_sizes": [
{
"width": 4503599627370495,
"height": 4503599627370495
}
]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assets: [
{
data_url: '<string>',
name: '<string>',
declared_sizes: [{width: 4503599627370495, height: 4503599627370495}]
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/creatives/stash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"files": [
{
"file_id": "<string>",
"filename": "<string>",
"media_kind": "image",
"preview_url": "<string>"
}
],
"recent_campaigns": [
{
"campaign_id": "<string>",
"name": "<string>",
"created_label": "<string>"
}
],
"advertiser_name": "<string>",
"advertisers": [
{
"advertiser_id": "<string>",
"name": "<string>"
}
],
"selected_advertiser_id": "<string>",
"saved_as": "<string>",
"collection_id": "<string>",
"skipped_files_notice": "<string>",
"skipped_files": [
"<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
Body
application/json
Required array length:
1 - 50 elementsShow child attributes
Show child attributes
Response
Stash brought creatives before an advertiser is chosen