Get Ad

Получение рекламного объявления для последующего отображения

Get ad

post
Body
all ofOptional
Responses
200
OK
application/json
post
POST /v1/ads/get HTTP/1.1
Host: api.taddy.pro
Content-Type: application/json
Accept: */*
Content-Length: 363

{
  "pubId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "user": {
    "id": 1234567890,
    "firstName": "John",
    "lastName": "Doe",
    "username": "john_doe",
    "premium": true,
    "language": "en",
    "country": "DE",
    "gender": "male",
    "ip": "65.82.123.21",
    "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
    "birthDate": "2001-01-01"
  },
  "origin": "server",
  "format": "bot-ad"
}
{
  "result": {
    "id": "text",
    "title": "text",
    "description": "text",
    "image": "text",
    "icon": "text",
    "text": "text",
    "button": "text",
    "link": "text"
  }
}

Last updated