Sync campaign creatives
curl --request POST \
--url https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"synced": [
{
"storefrontId": 4503599627370495,
"mediaBuyId": "<string>",
"status": "<string>",
"message": "<string>",
"errorCode": "<string>"
}
],
"skipped": [
{
"mediaBuyId": "<string>",
"storefrontId": 4503599627370495,
"routeMediaBuyId": "<string>",
"reason": "NO_ROUTE_YET"
}
]
}{
"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": {}
}
}Creatives
Sync campaign creatives
Sync attached creatives to every eligible campaign media buy. Non-terminal buys without a route are returned in skipped and do not block eligible buys; terminal buys are excluded.
POST
/
campaigns
/
{campaignId}
/
creatives
/
sync
Sync campaign creatives
curl --request POST \
--url https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/campaigns/{campaignId}/creatives/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"synced": [
{
"storefrontId": 4503599627370495,
"mediaBuyId": "<string>",
"status": "<string>",
"message": "<string>",
"errorCode": "<string>"
}
],
"skipped": [
{
"mediaBuyId": "<string>",
"storefrontId": 4503599627370495,
"routeMediaBuyId": "<string>",
"reason": "NO_ROUTE_YET"
}
]
}{
"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
Campaign ID
Minimum string length:
1Response
Sync campaign creatives
Campaign creative-sync outcomes. Eligible buys are dispatched even when other non-terminal buys are skipped.