Who talks to whom
When a page or app has ad space to fill, an exchange or SSP sends a bid request to buyers' bidders. Each bidder decides whether to bid and replies with a bid response, usually within a time limit set in the request. A bidder that does not want to bid answers with no content.
A small bid request
{
"id": "req-1",
"imp": [{"id": "1", "banner": {"w": 300, "h": 250}, "bidfloor": 0.5}],
"site": {"domain": "example.com", "page": "https://example.com/news"},
"device": {"ua": "Mozilla/5.0", "ip": "192.0.2.1"},
"at": 1,
"tmax": 120
}- id: the request's own ID.
- imp: the impressions on offer. Each has an ID, a type (banner, video, audio or native) and often a floor price.
- site or app: where the ad will appear. A request describes one of them, not both.
- device and user: the device, and what the exchange can say about the user.
- at: the auction type, for example first price or second price.
- tmax: how many milliseconds the bidder has to answer.
- source: where the request came from, including the schain.
- regs: regulations that apply, such as consent signals.
A small bid response
{
"id": "req-1",
"seatbid": [{"bid": [{
"id": "b1", "impid": "1", "price": 1.25,
"adm": "<creative markup>",
"adomain": ["advertiser.example"], "crid": "c-77"
}]}]
}The response repeats the request's ID. Each bid names the impression it is for (impid) and gives a price and the creative to show, along with the advertiser's domain and a creative ID.
OpenRTB 2.5 and 2.6
OpenRTB 2.6 is the later version of the standard. It moves several things that were extensions in 2.5 into the main specification, for example the supply chain object, which goes from source.ext.schain to source.schain, and it adds new fields. Many partners still send 2.5, so tools that read both are useful.
Common problems
- An impression with no ID, or two impressions with the same ID.
- An impression with no media type, or with a size missing.
- Both site and app present in one request.
- A price sent as text instead of a number.
- A bid whose impid matches no impression in the request.
- Fields placed in the wrong version's location, such as schain under the 2.5 extension in a 2.6 request.
How to check one
Paste a request or response into the Bid Request Checker (OpenRTB). It lists each problem with the field it is in and what to change, explains what the request is selling, converts between 2.5 and 2.6, and can generate a valid sample to start from.