> 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/zh/fa-bu-shang/exoclick-rtb/bid-request.md).

# ExoClick RTB 出价请求

ExoClick RTB 出价请求通过 POST 使用 JSON，通过 GET 使用 URL。POST 不允许 XML 请求。

## 出价请求标头

* **Keep-Alive HTTP 标头**: `Connection: Keep-Alive`
* **JSON 内容**: `Content-Type: application/json`
* **数据编码标头**: `Accept-Encoding`

### 出价请求对象

| 属性                | 必填？        | 说明                                                                                                                      |
| ----------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------- |
| `id`              | 是          | 唯一的出价请求 ID（字符串）                                                                                                         |
| `ip`              | 是          | 用户的 IP 地址（字符串）                                                                                                          |
| `language`        | 是          | 采用 ISO-639-1-alpha-2 格式的浏览器语言（字符串）                                                                                      |
| `remove_addr`     | 否          | 用户的主 IP 地址（字符串）                                                                                                         |
| `x_forwarded_for` | 否          | 用户的 X-FORWARDED-FOR IP 地址；如果未设置，则为空（字符串）                                                                                |
| `type`            | 是          | 请求类型。可以是 “banner”、“popunder”、"direct\_link"、"email\_click"\*、“push\_notification” 或 "in\_page\_push\_notification"（字符串） |
| `ua`              | 是          | 浏览器用户代理（字符串）                                                                                                            |
| `url`             | 是          | 将展示广告的页面完整 URL（字符串）                                                                                                     |
| `user_id`         | 是          | 唯一的用户 ID（字符串）                                                                                                           |
| `sub`             | 否          | 值应为 6 到 10 位数字：Sub ID 开头不要使用零。                                                                                          |
| `export`          | 是          | 响应类型。可以是 "json" 或 "xml"（字符串）                                                                                            |
| `keyword`         | 否          | 关键字可用于确保广告位展示正确类型的广告。关键字应为由逗号分隔的词语组成的字符串。                                                                               |
| `size`            | 横幅广告必填\*\* | 发布商广告类型尺寸（字符串）                                                                                                          |
| `el`              | 否          | 经过 Base64 编码的电子邮件地址。仅适用于电子邮件点击和直接链接（字符串）                                                                                |

***

**注：**

* `"email_click"` 作为类型值时，只需在 GET 请求中指定。
* 在 Push 请求中，如果省略 size，默认值将为 `192x192` 以保持向后兼容。
* Sub ID 应为介于 1 和 [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32.maxvalue?view=net-5.0)：子 ID 的开头不要使用零。


---

# 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/zh/fa-bu-shang/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.
