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

# Pedido de Lance ExoClick RTB

O pedido de lance da ExoClick RTB é efetuado em JSON para POST e através de um URL para GET. Os pedidos XML não são permitidos para POST.

## Cabeçalhos do pedido de lance

* **Cabeçalho HTTP Keep-Alive**: `Connection: Keep-Alive`
* **Conteúdo JSON**: `Content-Type: application/json`
* **Cabeçalho de codificação de dados**: `Accept-Encoding`

### Objeto do pedido de lance

| Atributo          | Obrigatório?                 | Descrição                                                                                                                                                                          |
| ----------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`              | Sim                          | ID exclusivo do pedido de lance (string)                                                                                                                                           |
| `ip`              | Sim                          | Endereço IP do utilizador (string)                                                                                                                                                 |
| `language`        | Sim                          | Idioma do navegador, segundo a norma ISO-639-1-alpha-2 (string)                                                                                                                    |
| `remove_addr`     | Não                          | Endereço IP principal do utilizador (string)                                                                                                                                       |
| `x_forwarded_for` | Não                          | Endereço IP X-FORWARDED-FOR do utilizador ou vazio se não estiver definido (string)                                                                                                |
| `type`            | Sim                          | Tipo de pedido. Pode ser “banner”, “popunder”, "direct\_link", "email\_click"\*, “push\_notification” ou "in\_page\_push\_notification" (string)                                   |
| `ua`              | Sim                          | Agente do utilizador do navegador (string)                                                                                                                                         |
| `url`             | Sim                          | URL completo da página onde o anúncio será apresentado (string)                                                                                                                    |
| `user_id`         | Sim                          | ID exclusivo do utilizador (string)                                                                                                                                                |
| `sub`             | Não                          | Deve ser um número com seis a dez algarismos: não utilize zeros no início dos IDs Sub.                                                                                             |
| `export`          | Sim                          | Tipo de resposta. Pode ser "json" ou "xml" (string)                                                                                                                                |
| `keyword`         | Não                          | As palavras-chave podem ser utilizadas para garantir que as zonas de anúncios apresentam o tipo de publicidade adequado. Devem ser uma string com palavras separadas por vírgulas. |
| `size`            | Obrigatório para banners\*\* | Tamanho do tipo de anúncio do publisher (string)                                                                                                                                   |
| `el`              | Não                          | E-mail codificado em Base64. Disponível apenas para cliques em e-mails e links diretos (string)                                                                                    |

***

**Notas:**

* `"email_click"` como tipo, só tem de ser especificado em pedidos GET.
* Nos pedidos Push, se size for omitido, o valor predefinido será `192x192` para garantir a compatibilidade com versões anteriores.
* Os IDs Sub devem ser um número entre 1 e [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32.maxvalue?view=net-5.0): Não utilize zeros no início dos IDs secundários.


---

# 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/pt/editores/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.
