> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/rtb/ru/reklamodateli/exoclick-rtb/bid-request.md).

# Запрос ставки ExoClick RTB

На этой странице описываются различные компоненты RTB-запросов, которые вы будете получать для размещения ставок.

## Заголовки запроса ставки

* **HTTP-заголовок версии ExoClick RTB**: `x-exadsrtb-version: 1.0`
* **HTTP-заголовок Keep-Alive**: `Connection: Keep-Alive`
* **JSON-содержимое**: `Content-Type: application/json`
* **Заголовок кодирования данных**: `Accept-Encoding`

## Объект запроса ставки

При запросе ставок для конкретного контекста платформа выполнит HTTP-запрос с тайм-аутом **300 мс**. Он отправит следующий объект, закодированный как JSON, в теле запроса методом POST:

| Атрибут           | Описание                                                                                                           |
| ----------------- | ------------------------------------------------------------------------------------------------------------------ |
| id                | Уникальный ID запроса ставки (string)\*                                                                            |
| ip                | IP-адрес пользователя (строка)\*                                                                                   |
| language          | Язык браузера в формате ISO-639-1-alpha-2 (string)\*                                                               |
| remote\_addr      | Основной IP-адрес пользователя (строка)                                                                            |
| x\_forwarded\_for | IP-адрес пользователя из X-FORWARDED-FOR или пусто, если не задан (строка)                                         |
| type              | Тип запроса. Может быть "banner", "popunder" или "push\_notification" (string)\*                                   |
| ua                | User-Agent браузера (string)\*                                                                                     |
| url               | Полный URL страницы, на которой будет показано объявление (string)\*                                               |
| user\_id          | Уникальный ID пользователя (string)\*                                                                              |
| экспорт           | Тип ответа. Может быть "json" или "xml" (string)\*                                                                 |
| keyword           | ключевое слово (string)                                                                                            |
| size              | Размер типа рекламного объявления издателя (string)\*\*                                                            |
| sub               | sub будет целым числом, представляющим ID зоны, из которой был инициирован запрос (не путать с токеном {zone\_id}) |

\*обязательные поля

\*\*обязательно только для типа banner. Для Push Notification, если поле пустое, будет считаться 192x192

## Примеры

Полный список всех типов запросов, которые вы можете получать, вы найдете в нашем [Примере страницы запроса рекламодателя](/rtb/ru/reklamodateli/exoclick-rtb/exoclick-rtb-advertiser-code-examples.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.exoclick.com/rtb/ru/reklamodateli/exoclick-rtb/bid-request.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
