Open RTB 2.5 Bid Request
Suggested Bid Request Headers
OpenRTB Version HTTP Header: x-openrtb-version: 2.5
Keep-Alive HTTP Header: Connection: Keep-Alive
Content JSON: Content-Type: application/json
The following objects should be sent encoded as JSON in the request body:
Bid Request
at
Yes
Auction type, first price = 1 (int)
id
Yes
Unique bid request ID (string)
imp
Yes
Array of Imp objects representing the impressions offered(object).
site
Yes
Details via a Site object about the publisher’s website(object).
device
Yes
Details via a Device object about the user’s device to which the impression will be delivered(object).
user
No
Details via a User object about the human user of the device; the advertising audience(object).
bcat
No
Blocked advertiser categories using the IAB content categories (string array)
ext
No
Placeholder for extensions to OpenRTB.
imp
id
Yes
Unique impression ID within this bid request (string)
bidfloor
No
Minimum bid for this impression (CPM) / click (CPC) and account currency, optional (float).
banner
Only for banner imps
A banner object ; required if this impression is offered as a banner ad opportunity(object).
secure
No; Recommended 1
Flag to indicate if the impression requires secure HTTPS URL creative assets and markup, where 0 = non-secure, 1 = secure. If omitted, the secure state is unknown, but non-secure HTTP support can be assumed, optional (integer)
imp.banner
w
Yes
Width of the banner (integer)
h
Yes
Height of the banner (integer)
imp.full-page-interstitial
w
Yes
Width of the banner (integer)
h
Yes
Height of the banner (integer)
mimes
Yes
Mimes types - image/jpg, image/png, video/mp4 or image/webp
imp.instl
instl
Flag specifying if ad is popunder/interstitial (integer): 1=true, 0=false
imp.native (for Native and Push Notification Ads)
request
Yes
Request payload complying with the Native Ad Specification - a JSON encoded string of the Native Ads request including its native top level object (JSON object)
ver
No
Version of the Dynamic Native Ads API to which request complies (string)
imp.native.request
native
Yes
Container for a payload complying with the Native Ad Specification - a JSON encoded string of the Native Ads request
imp.native.request.native
ver
Yes
Version of the Native Markup version in use (string)
context
No
The context in which the ad appears. In this case it is 1 (Content-centric context such as newsfeed, article, image gallery, video gallery, or similar), optional (integer)
plcmttype
Yes
The design/format/layout of the ad unit being offered. Currently we support 4 (Recommendation widget) and 500 (Push Notification) (integer)
plcmtcnt
No
The number of identical placements in this Layout (integer)
assets
Yes
An array of Asset Objects. Any bid response must comply with the array of elements expressed in the bid request (array of JSON objects)
seq
No
0 for the first ad, 1 for the second ad, and so on. Note this would generally NOT be used in combination with plcmtcnt - either you are auctioning multiple identical placements (in which case plcmtcnt>1, seq=0) or you are holding separate auctions for distinct items in the feed (in which case plcmtcnt=1, seq=>=1)
imp.native.request.native.assets
id
Yes
Unique asset ID, assigned by exchange. Typically a counter for the array (integer)
required
No
Set to 1 if asset is required or 0 if asset is optional (integer)
plcmtcnt
No
The number of identical placements in this Layout (integer)
img
Yes
Image object for image assets* (JSON object)
title
No
Title object for title assets* (JSON object)
data
No
Data object for brand name, description, ratings, prices etc.* (JSON object)
video
No
Video object for video assets. See the Video request object definition. Note that in-stream (ie preroll, etc) video ads are not part of Native. Native ads may contain a video as the ad creative itself(object).
* Only one of the {img, title, data} objects should be present in each asset object
imp.native.request.native.assets.img
type
No
Type ID of the image element supported by the publisher. We support: 1 (Icon image) (integer), 3 (Large image preview for the ad) (integer)
w
No
Width of the image in pixels, optional (integer)
h
No
Height of the image in pixels, optional (integer)
wmin
Yes
The minimum requested width of the image in pixels (integer)
hmin
Yes
The minimum requested height of the image in pixels (integer)
*Push Notification icon dimensions: 192px x 192px
imp.native.request.native.assets.title
len
Yes
Maximum length of the text in the title element. (integer)
imp.native.request.native.assets.data
type
Yes
Type ID of the element supported by the publisher (integer). We support: 1 (sponsored - Sponsored By message where response should contain the brand name of the sponsor), 2 (desc - Descriptive text associated with the product or service being advertised)
len
No
Maximum length of the text in the element's response (integer)
imp.native.request.native.assets.video
mimes
Yes
List of supported mime types (string array)
minduration
Yes
Minimum video ad duration in seconds(integer).
maxduration
Yes
Maximum video ad duration in seconds(integer).
protocols
Yes
List of supported video bid response protocols (int array)
linearity
Required for in-stream ads only.
Indicates if the impression must be linear, nonlinear, etc. (integer)
boxingallowed
Required for in-stream ads only.
Indicates if letter-boxing of 4:3 content into a 16:9 window is allowed (integer)
imp.video
mimes
Yes
List of supported mime types (string array)
protocols
Yes
List of supported video bid response protocols (int array)
skip
No
Indicates if the player will allow the video to be skipped, where 0 = no, 1 = yes
skipmin
No
Videos of total duration greater than this number of seconds can be skippable
skipafter
No
Number of seconds a video must play before skipping is enabled
site
id
Recommended
Unique Site ID (string)
name
No*
Site name (string)
domain
Recommended
Domain name of the site (string)
cat
No
IAB category ID (string array)
page
Recommended
Full URL of the page where the ad will be shown (string)
keywords
No
Keywords can be used to ensure ad zones get the right type of advertising. Keywords should be a string of comma-separated words
* Recommended when RTB Inventory is enabled.
site.ext
exchangecat
No
Custom EXADS category ID (integer)
idzone
No
Custom EXADS Ad Zone ID (integer)
app
id
Recommended
Unique App ID (string)
name
No*
App name (string)
domain
Recommended
Domain name of the app (string)
cat
No
IAB category ID (string array)
pagecat
No
IAB category ID (string array)
keywords
No
Keywords can be used to ensure ad zones get the right type of advertising. Keywords should be a string of comma-separated words (string)
publisher
No
Details about the Publisher (object)
Note: Only one of the objects {site, app} should be present in each request.
* Recommended when RTB Inventory is enabled.
device
ua
Yes
Browser user agent (string)
sua
No
Structured user agent information, which can be used when a client supports User-Agent Client Hints (object)
geo
No
Location of the device assumed to be the user’s current location defined by a Geo object.
ip
Conditional*
IPv4 address of the user (string)
ipv6
Conditional*
IPv6 address of the user (string)
language
Recommended
Browser language (string)
os
No
Operating System name, without version (string). E.g. "iOS", "Android", "Windows"
osv
No
Operating System version (string). E.g. "18", "14", "11"
js
No
Support for JavaScript, where 0 = no, 1 = yes (integer)
ext
No
Placeholder for exchange-specific extensions to OpenRTB
*Condition: Exactly one of ip or ipv6 must be included in the request (not both).
device.geo
country
No
Country ISO3
device.ext
remote_addr
No
Main IP address of the user (string)
x_forwarded_for
No
X-FORWARDED-FOR IP address of the user or empty if not set (string)
device.sua
Structured User Agent information. Once provided device.sua is considered the more accurate representation of the device attributes.
browsers
Recommended
Implementers should send brands and versions derived from the Sec-CH-UA-Full-Version-List header. (Array of BrandVersion objects)
platform
Recommended
Implementers should send a brand derived from the Sec-CH-UA-Platform header, and version derived from the Sec-CH-UA-Platform-Version header. (BrandVersion Object)
mobile
Recommended
Implementers should derive this value from the Sec-CH-UA-Mobile header. (integer)
architecture
Recommended
Implementers should retrieve this value from the Sec-CH-UA-Arch header. (string)
bitness
Recommended
Implementers should retrieve this value from the Sec-CH-UA-Bitness header. (string)
model
Recommended
Implementers should retrieve this value from the Sec-CH-UA-Model header. (string)
source
Recommended
The source of data used to create this object, List: User-Agent Source in AdCOM 1.0 (integer; default 0)
device.sua.browsers.BrandVersion | device.sua.platform.BrandVersion
brand
Required
The value may be sourced from the User-Agent Client Hints headers, representing either the user agent brand (from the Sec-CH-UA-Full-Version header) or the platform brand (from the Sec-CH-UA-Platform header). (string)
version
Recommended
A sequence of version components, in descending hierarchical order [major, minor, micro, …] (array of string)
user
id
No
Unique user ID (string)
user.ext
consent
user.ext.consent: This is the consent string required by the IAB standards. Negative consent only for now (string)
regs.ext
gdpr
regs.ext.gdpr: This is 0 if the caller believes that the user is not under GDPR, and 1 if the user is under GDPR. If neither, this parameter will be undefined.
ext
sub
No
The Sub ID. This should be a number between six and ten digits: Do not use zeroes at the beginning of Sub IDs.
Examples
Banner
Banner Bid Request Structure
Desktop Full Page Interstitial
Full Page Interstitial
Mobile Full Page Interstitial
Full Page Interstitial
Email Clicks
Email Clicks Bid Request Structure
Popunder
Popunder Bid Request Structure
Direct Links
Direct Links Bid Request Structure
Native
Native Bid Request Structure
Push Notifications - 192 x 192
Push Notifications - 192 x 192 Bid Request Structure
Push Notifications - 720 x 480
Push Notifications - 720 x 480 Bid Request Structure
In-Stream Video, Outstream Video, Video Slider
In-Stream Video, Outstream Video, Video Slider Bid Request Structure
Last updated
Was this helpful?

