Skip to content

Integration, Telegram Embedded Banner

Request Telegram integration is implemented with a POST request containing a JSON object in its body.

http
POST http://{ssp_id}.xml.adx1.com/telegram-bid

The Simplest Request Body Sample

json
{
 "ip": "192.112.192.11",
 "user_agent":"Mozilla/5.0 (Linux, Android 14; K) AppleWebKit/537.36 (KHTML, lke Gecko) Chrome/129.0.6668.81 Mobile Safari/537.36 Telegram-Android/11.2.0 (Google Pixel 6; Android 14; SDK 34; HIGH)",
 "publisher_id":"792361"
}

Full Request Body Sample

json
{
 "ip": "192.112.192.11",
 "user_agent":"Mozilla/5.0 (Linux, Android 14; K) AppleWebKit/537.36 (KHTML, lke Gecko) Chrome/129.0.6668.81 Mobile Safari/537.36 Telegram-Android/11.2.0 (Google Pixel 6; Android 14; SDK 34; HIGH)",
 "publisher_id":"792361",
 "widget_id":"351352",
 "bid_floor":0.0001,
 "premium": true,
 "motivated": true,
 "language_code":"en",
 "telegram_id": "515279737",
 "blocked_categories": [18, 30],
 "number_of_bids": 3,
 "width": 150,
 "height": 100,
 "production": true
}

Request JSON Attributes

ParameterTypeRequiredDescription
ipStringYesUser IP address (IPv4/IPv6 supported)
user_agentStringYesUser agent string
publisher_idStringYesPublisher ID
language_codeStringNoUser language in ISO alpha-2 format
widget_idStringNoMini App ID
telegram_idStringNoTelegram user ID number
bid_floorDoubleNoMinimum bid (CPC/CPM based on SSP config)
number_of_bidsIntegerNoNumber of bids to return (default: 1)
blocked_categoriesInteger[]NoList of blocked advertiser category IDs
premiumBooleanNoPremium user flag (default: false)
motivatedBooleanNoIndicates motivated user action
productionBooleanNoIndicates whether the request is made in production mode. false is used for initial tests to ensure that ssp is integrated correctly. Test responses will be returned in this case. true is used if not specified

Response Sample

json
[
   {
"image":"https://us.boxif.xyz/nty/metrics/save.img?event=impressions&bid-id=v2-1728914821764-14-14065-1373881-17047345-5c5c-bf4e-e314-fc908803c0a4&img=https%3A%2F%2Fcdn.amnew.net%2Ffiles%2F66d6d40333b3b_2024_09_03_09_16_51_image.webp",   "link":"https://us.boxif.xyz/nty/postback/click?key=v2-1728914821764-14-14065-1373881-17047345-5c5c-bf4e-e314-fc908803c0a4",
      "bid_price":0.0000093,
      "width": 150,
      "height": 100
   },
   {      "image":"https://us.boxif.xyz/nty/metrics/save.img?event=impressions&bid-id=v2-1728914821764-14-14065-1373881-068d4342-f9af-e153-437b-430ef038d5b5&img=https%3A%2F%2Fcdn.amnew.net%2Ffiles%2F66d6d40333b3b_2024_09_03_09_16_51_image.webp",
      "link":"https://us.boxif.xyz/nty/postback/click?key=v2-1728914821764-14-14065-1373881-068d4342-f9af-e153-437b-430ef038d5b5",
      "bid_price":0.0000093,
      "width": 150,
      "height": 100
   }
]

Response JSON Attributes

ParameterTypeDescription
imageStringLink to creative banner
linkStringClick URL
bid_priceDoubleBid price expressed in CPC or CPM depending on SSP configuration
widthIntegerBanner width in pixels
heightIntegerBanner height in pixels