Toggle syndication for a resource
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resourceId": "<string>",
"adcpAgentIds": [
"<string>"
],
"enabled": true
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate"
payload = {
"resourceId": "<string>",
"adcpAgentIds": ["<string>"],
"enabled": True
}
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({resourceId: '<string>', adcpAgentIds: ['<string>'], enabled: true})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "1",
"customerId": 0,
"advertiserId": "12345",
"resourceType": "AUDIENCE",
"resourceId": "<string>",
"audienceId": "1",
"eventSourceId": "<string>",
"catalogId": "<string>",
"adcpAgentId": "42",
"adcpAgentAccountId": "<string>",
"enabled": true,
"status": "PENDING",
"errorMessage": "<string>",
"responseData": "<unknown>",
"createdAt": "<string>",
"updatedAt": "<string>",
"completedAt": "<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": {}
}
}Syndication
Toggle syndication for a resource
Toggle syndication ON/OFF for an audience, event source, or catalog to a specific ADCP agent. Returns the syndication status record immediately.
POST
/
advertisers
/
{advertiserId}
/
syndicate
Toggle syndication for a resource
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resourceId": "<string>",
"adcpAgentIds": [
"<string>"
],
"enabled": true
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate"
payload = {
"resourceId": "<string>",
"adcpAgentIds": ["<string>"],
"enabled": True
}
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({resourceId: '<string>', adcpAgentIds: ['<string>'], enabled: true})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/syndicate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "1",
"customerId": 0,
"advertiserId": "12345",
"resourceType": "AUDIENCE",
"resourceId": "<string>",
"audienceId": "1",
"eventSourceId": "<string>",
"catalogId": "<string>",
"adcpAgentId": "42",
"adcpAgentAccountId": "<string>",
"enabled": true,
"status": "PENDING",
"errorMessage": "<string>",
"responseData": "<unknown>",
"createdAt": "<string>",
"updatedAt": "<string>",
"completedAt": "<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
Minimum string length:
1Example:
"12345"
Body
application/json
Response
Toggle syndication for a resource
Response after toggling syndication for one or more ADCP agents
Show child attributes
Show child attributes