> 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/ja/mei-ti-she/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 ClicksとDirect Linkでのみ利用可能（文字列）                                                                      |

***

**注:**

* `"email_click"` をtypeとして指定する必要があるのは、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/ja/mei-ti-she/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.
