Skip to content

OpenRTB bid requests explained

OpenRTB is the standard format for the messages that exchanges and bidders send each other in a real-time ad auction. Knowing its shape makes bid logs and integration problems much easier to read.

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
}

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

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.

Check it with ortb.in

Common questions

What is the difference between a bid request and a bid response?

A request offers an impression and describes it. A response is a bidder's answer with a price and an ad.

What if a bidder does not want to bid?

It answers with no content, which is a valid, quick way to decline.

Is OpenRTB the same as header bidding?

No. Header bidding is a way of running an auction on a page. OpenRTB is the message format many auctions use.

Keep reading