> 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-заголовок Keep-Alive**: `Connection: Keep-Alive`
* **JSON в теле запроса**: `Content-Type: application/json`
* **Заголовок кодирования данных**: `Accept-Encoding`

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

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

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

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

\*\*обязательно только для типа banner. Для push-уведомлений, если значение не задано, используется размер 192x192.

## Примеры

Полный список всех типов запросов, которые вы можете получать, см. на странице [с примером запроса рекламодателя](https://docs.exoclick.com/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
