Skip to content

Activate publisher

This endpoint activates publisher. Publisher is active by default, so you shouldn’t make this request unless the publisher is inactive.

POST https://adelion.com/api/publisher/activate
ParameterTypeDescriptionRequirement
IdintPublisher ID.required
JSON payload example
{
"Publisher": {
"Id": 1
}
}
Success JSON
{
"Status": "Ok",
"Publisher": {
"Id": 1,
"TeamId": 1,
"Mail": "publisher@mail.com",
"Name": "Publisher",
"Description": "Publisher desc",
"Website": "www.publisher.com",
"Country": "US",
"City": "New York",
"ZipCode": "123456",
"Address": "123 Street",
"Phone": "+11111111111",
"MsgApp": "[msg_app]",
"MsgAccount": "[msg_account]",
"PlatformDomain": "google.com",
"SellersJsonDomain": "realtimebidding.google.com",
"Username": "publisher1",
"SellerType": 2,
"SellerId": "",
"StatsAuth": "7sdd23",
"StatsByDateCsv": "https://adelion.com/api/ortb/stats/publisher/general?username=publisher1&auth=7sdd23&date_from={date_from}&date_to={date_to}",
"StatsByDateJson": "https://adelion.com/api/ortb/stats/publisher/general?username=publisher1&auth=7sdd23&date_from={date_from}&date_to={date_to}&type=json",
"AccManagerId": 5,
"AccManagerName": "John Doe",
"Status": 0,
"StatusString": "Active",
"BannerEpsCount": 1,
"VastTagsCount": 1,
"RtbEpsCount": 1,
"PopFeedsCount": 1
}
}
Error JSON
{
"Status": "Error",
"Error": "[error description]"
}
CodeStatusMeaning
400Bad RequestYou sent a body that isn’t JSON.
401UnauthorizedYour access token is invalid.
406Not AcceptableOne or more JSON values are missing or malformed, or the requested object was not found.
500Internal Server ErrorThe server encountered a problem. Try again later.