> 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/pablishery/exoclick-rtb/bid-request.md).

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

Запрос ставки ExoClick RTB отправляется в формате JSON для POST и через URL для GET. XML-запросы для POST не допускаются.

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

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

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

| Атрибут           | Обязательный?                          | Описание                                                                                                                                                       |
| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`              | Да                                     | Уникальный идентификатор запроса ставки (строка)                                                                                                               |
| `ip`              | Да                                     | IP-адрес пользователя (строка)                                                                                                                                 |
| `language`        | Да                                     | Язык браузера в формате ISO-639-1-alpha-2 (строка)                                                                                                             |
| `remove_addr`     | Нет                                    | Основной IP-адрес пользователя (строка)                                                                                                                        |
| `x_forwarded_for` | Нет                                    | IP-адрес пользователя из X-FORWARDED-FOR или пустое значение, если он не задан (строка)                                                                        |
| `type`            | Да                                     | Тип запроса. Может принимать значения “banner”, “popunder”, "direct\_link", "email\_click"\*, “push\_notification” или "in\_page\_push\_notification" (строка) |
| `ua`              | Да                                     | Строка User-Agent браузера (строка)                                                                                                                            |
| `url`             | Да                                     | Полный URL страницы, на которой будет показана реклама (строка)                                                                                                |
| `user_id`         | Да                                     | Уникальный идентификатор пользователя (строка)                                                                                                                 |
| `sub`             | Нет                                    | Значение должно быть числом от шести до десяти цифр. Не используйте нули в начале Sub ID.                                                                      |
| `export`          | Да                                     | Тип ответа. Может принимать значения "json" или "xml" (строка)                                                                                                 |
| `keyword`         | Нет                                    | Ключевые слова помогают подобрать подходящую рекламу для рекламных зон. Они должны быть представлены строкой со словами, разделёнными запятыми.                |
| `size`            | Обязательный параметр для баннеров\*\* | Размер рекламного блока издателя (строка)                                                                                                                      |
| `el`              | Нет                                    | Адрес электронной почты в кодировке Base64. Доступно только для кликов по ссылкам в письмах и прямых ссылок (строка)                                           |

***

**Примечания:**

* `"email_click"` в качестве типа указывается только в GET-запросах.
* В запросах Push, если размер не указан, по умолчанию используется значение `192x192` для обратной совместимости.
* Значение Sub ID должно быть числом от 1 до [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32.maxvalue?view=net-5.0): Не используйте нули в начале идентификаторов Sub.


---

# 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/pablishery/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.
