> For the complete documentation index, see [llms.txt](https://kakaobusiness.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kakaobusiness.gitbook.io/main/partner/kakaoadx_rtb/rtb.md).

# 카카오 RTB 연동

## 1. 개요

{% hint style="info" %}
카카오 SSP와 RTB 연동을 할 수 있으며, 하위 페이지들에서 kakao(Supply-Side)와 Partner사(Demand-Side, Bidder) 간에 Server-To-Server RTB 연동 프로토콜 명세를 확인할 수 있습니다.
{% endhint %}

## 2. 카카오 RTB 소개

### 2.1 RTB 흐름 순서

1. kakao에서 각 Partner사(이하 Bidder)들에게 Bid Request을 보낸다.
2. Bidder는 Bid Response을 통해서 입찰한다.

* 입찰을 포기하는 경우에도 No-Bid 형식으로 응답
* 허용된 응답시간(별도로 명시/협의) 안에 도착하지 않은 응답은 No-Bid로 처리

3. kakao는 실시간 경매를 통해 Winner 및 Price을 결정한다.
4. kakao는 낙찰된 Bidder(Winner)의 광고를 사용자(Audience)에게 노출한다.
5. kakao는 Winner에게만 Win Notice을 보내며, lurl을 담아 응답하는 경우 진 경우엔 Lose Notice를 호출한다.

### 2.2 RTB Server-To-Server Protocol

1. 전송 프로토콜은 HTTP POST Method와 JSON Body을 이용한다.
2. HTTP Request Header

* Open RTB Version (x-openrtb-version: 2.5, 2.6)
* Kakao RTB Version (x-kakaortb-version: 1.0.0)
* Data Format (Content-Type: application/json)
* Data Encoding (Accept-Encoding: gzip, Content-Encoding: gzip)&#x20;
  * 별도 협의 필요

3. HTTP Response

* HTTP 응답(Status Code)
  * 입찰할 경우 : 200 (with json body)
  * 입찰을 포기할 경우 : 204 (empty or json body with reason for not bidding with 200 OK)
  * 잘못된 입찰 요청(ex>Malformed Bid Request) : 400
* Open RTB(4.4.3)에 명시된 Ad Serving Approaches 중 Ad Served In the Bid 방식만 지원한다. (즉, Bid Response에 반드시 광고 소재가 포함되어야 한다.)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kakaobusiness.gitbook.io/main/partner/kakaoadx_rtb/rtb.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
