Update advertiser
This endpoint updates advertiser.
HTTP Request
Section titled “HTTP Request”POST https://adelion.com/api/advertiser/update| Parameter | Type | Description | Requirement |
|---|---|---|---|
| Id | int | Advertiser ID. | required |
string | Advertiser’s email. | optional | |
| Name | string | Advertiser’s name. | optional |
| Description | string | Advertiser’s description. | optional |
| Website | string | Advertiser’s website. | optional |
| Country | string | Advertiser’s country. It must be a ISO-3166-1-alpha-2 country code. See Info -> Get countries for a list of available countries. | optional |
| City | string | Advertiser’s city. | optional |
| ZipCode | string | Advertiser’s zip code. | optional |
| Address | string | Advertiser’s address. | optional |
| Phone | string | Advertiser’s phone. | optional |
| MsgApp | string | Messaging application: Teams, Telegram or WhatsApp. | optional |
| MsgAccount | string | Messaging account name on Messaging application. | optional |
{ "Advertiser": { "Id": 1, "Mail": "advertiser@mail.com", "Name": "Advertiser name", "Description": "Advertiser desc", "Website": "www.advertiser.com", "Country": "US", "City": "New York", "ZipCode": "123456", "Address": "123 Street", "Phone": "+11111111111", "MsgApp": "[msg_app]", "MsgAccount": "[msg_account]" }}Response
Section titled “Response”{ "Status": "Ok", "Advertiser": { "Id": 1, "TeamId": 1, "Mail": "advertiser@mail.com", "Name": "Advertiser name", "Description": "Advertiser desc", "Website": "www.advertiser.com", "Country": "US", "City": "New York", "ZipCode": "123456", "Address": "123 Street", "Phone": "+11111111111", "MsgApp": "[msg_app]", "MsgAccount": "[msg_account]", "Username": "advertiser1", "StatsAuth": "7sdd23", "StatsByDate": "https://adelion.com/api/ortb/stats/advertiser/general?username=advertiser1&auth=7sdd23&date_from={date_from}&date_to={date_to}&columns=DateStats,RemoteRequests,NetImpressions,Revenue", "AccManagerId": 5, "AccManagerName": "John Doe", "Status": 0, "StatusString": "Active", "CampaignsCount": 1, "DspRtbEpsCount": 1, "DspVastTagsCount": 1, "DspPopFeedsCount": 1 }}Failure
Section titled “Failure”{ "Status": "Error", "Error": "[error description]"}| Error Code | Meaning |
|---|---|
| 400 | Bad Request — You sent a body that isn’t JSON. |
| 401 | Unauthorized — Your access token is invalid. |
| 406 | Not Acceptable — Some value(s) inside JSON are missing or malformed, or requested object is not found. |
| 500 | Internal Server Error — We had a problem with our server. Try again later. |