curl --request POST \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account": {
"account_id": "12345"
}
}
'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync"
payload = { "account": { "account_id": "12345" } }
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({account: {account_id: '12345'}})
};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"event_sources": [
{
"event_source_id": "<string>",
"action": "created",
"error": "<string>",
"setup": {
"snippet_type": "server_only",
"instructions": "<string>",
"snippet": "<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": {}
}
}Sync event sources
Inbound ADCP sync_event_sources endpoint. Buyers call this to sync their event source configurations to the advertiser.
curl --request POST \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account": {
"account_id": "12345"
}
}
'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync"
payload = { "account": { "account_id": "12345" } }
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({account: {account_id: '12345'}})
};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/event-sources/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"event_sources": [
{
"event_source_id": "<string>",
"action": "created",
"error": "<string>",
"setup": {
"snippet_type": "server_only",
"instructions": "<string>",
"snippet": "<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
Unique identifier for the advertiser
1"12345"
Body
Request body for syncing event sources (ADCP spec). Omitting event_sources makes the call discovery-only.
Advertiser account to sync event sources onto
Show child attributes
Show child attributes
Client-generated unique key for at-most-once execution. Prevents duplicate audit events and downstream provisioning on retry. Also serves as a request ID on discovery-only calls. Strongly recommended; omitting it means retries are not deduplicated.
16 - 255^[A-Za-z0-9_.:-]{16,255}$Event sources to sync (up to 50 per call). When omitted, the call is discovery-only: it returns every existing event source on the account without modification.
1 - 50 elementsShow child attributes
Show child attributes
Archive buyer-managed event sources not included in this request. Has no effect when event_sources is omitted (discovery-only).
Response
Sync event sources
Response from sync_event_sources
Per-source sync results
Show child attributes
Show child attributes