# **Introduction** *The* *Native* *Ads* *sub-committee* *of* *the* *IAB* *OpenRTB* *Project* *assembled* *in* *May* *2014* *to* *develop* *a* *new* *supplementary* *API* *specification* *for* *companies* *interested* *in* *an* *open* *protocol* *for* *the* *automated* *trading* *of* *Native* *Ads* *enabled* *media* *across* *a* *broader* *range* *of* *platforms,* *devices,* *and* *advertising* *solutions.* *This* *document* *is* *the* *culmination* *of* *those* *efforts.* ### **ABOUT** **THE** **IAB’S** **TECHNOLOGY** **LAB** *The* *IAB* *Technology* *Laboratory* *is* *a* *nonprofit* *research* *and* *development* *consortium* *charged* *with* *producing* *and* *helping* *companies* *implement* *global* *industry* *technical* *standards* *and* *solutions.* *The* *goal* *of* *the* *Tech* *Lab* *is* *to* *reduce* *friction* *associated* *with* *the* *digital* *advertising* *and* *marketing* *supply* *chain* *while* *contributing* *to* *the* *safe* *growth* *of* *an* *industry.* *The* *IAB* *Tech* *Lab* *spearheads* *the* *development* *of* *technical* *standards,* *creates* *and* *maintains* *a* *code* *library* *to* *assist* *in* *rapid,* *cost-effective* *implementation* *of* *IAB* *standards,* *and* *establishes* *a* *test* *platform* *for* *companies* *to* *evaluate* *the* *compatibility* *of* *their* *technology* *solutions* *with* *IAB* *standards,* *which* *for* *18* *years* *have* *been* *the* *foundation* *for* *interoperability* *and* *profitable* *growth* *in* *the* *digital* *advertising* *supply* *chain.* ***Further*** ***details*** ***about*** ***the*** ***IAB*** ***Technology*** ***Lab*** ***can*** ***be*** ***found*** ***at:*** ***https://iabtechlab.com/**.* *The* *OpenRTB* *Work* *Group* *is* *a* *working* *group* *within* *the* *IAB* *Technology* *Lab.* *This* *document* *can* *be* *found* *at* *https://iabtechlab.com/specifications-guidelines/openrtb-dynamic-native-ads-api-1-2/* *IAB* *Contact* *Information:* \ *Jennifer* *Derke* \ *IAB* *Technology* *Laboratory* \ *jennifer@iabtechlab.com* ***License*** *OpenRTB* *Specification* *by* *OpenRTB* *is* *licensed* *under* *a* *Creative Commons Attribution 3.0* *License,* *based* *on* *a* *work* *at* *openrtb.info.* *Permissions* *beyond* *the* *scope* *of* *this* *license* *may* *be* *available* *at* *http://openrtb.info.* *To* *view* *a* *copy* *of* *this* *license,* *visit* *http://creativecommons.org/licenses/by/3.0/* *or* *write* *to* *Creative* *Commons,* *171* *Second* *Street,* *Suite* *300,* *San* *Francisco,* *CA* *94105,* *USA.*  # Table of Contents ## [Change Log](#cl) ## [Before You Get Started](#bygs) ## [1. Introduction](#1) - [1.1 - Mission / Overview](#1-1) - [1.2 - Credits / Project History](#1-2) ## [2. Native Ads Basics](#2) - [2.1 - In-Feed Ad Units](#2-1) - [2.2 - Data Format](#2-2) - [2.3 - Versioning](#2-3) - [2.4 - Customization and Extensions](#2-4) ## [3. Bid Request Details](#3) - [3.1 - Object: Native Hierarchy](#3-1) ## [4. Native Ad Request Markup Details](#4) - [4.1 - Object: Native Markup Request](#4-1) - [4.2 - Object: Asset Request](#4-2) - [4.3 - Object: Title Request](#4-3) - [4.4 - Object: Image Request](#4-4) - [4.5 - Object: Video Request](#4-5) - [4.6 - Object: Data Request](#4-6) - [4.7 - Object: Event Trackers Request](#4-7) ## [5. Native Ad Response Markup Details](#5) - [5.1 - Object: Native Markup Response](#5-1) - [5.2 - Object: Asset Response](#5-2) - [5.3 - Object: Title Response](#5-3) - [5.4 - Object: Image Response](#5-4) - [5.5 - Object: Data Response](#5-5) - [5.6 - Object: Video Response](#5-6) - [5.7 - Object: Link Response](#5-7) - [5.8 - Object: Event Tracker Response](#5-8) ## [6. Bid Request/Response Samples](#6) - [6.1 - Social Context, Clickout Response](#6-1) - [Bid Request](#61-brequest) - [Bid Response](#61-bresponse) - [6.2 - Content Context, Video Response](#6-2) - [Bid Request](#62-brequest) - [Bid Response](#62-bresponse) - [6.3 - Third-Party Ad Serving Example](#6-3) - [Bid Request](#63-brequest) - [Bid Response](#63-bresponse) - [What Should be Returned by the Assets URL](#63-wsbrbtau) ## [7. Reference Lists/Enumerations](#7) - [7.1 - Context Type IDs](#7-1) - [7.2 - Context Sub Type IDs](#7-2) - [7.3 - Placement Type IDs](#7-3) - [7.4 - Data Asset Types](#7-4) - [7.5 - Image Asset Types](#7-5) - [7.6 - Event Types Table](#7-6) - [7.7 - Event Tracking Methods Table](#7-7) # **Change** **Log**
| Version | Date | Section Link | Change |
|---|---|---|---|
| 1.0 | Jan 2015 | string | Original Version |
| 1.1 | Oct 2015 | string | Various clerical fixes and clarifications, standardized creative element lengths/sizes/aspect ratios in the asset sub-objects, added new context and placement types to bid request, noted that direct-object representation is supported along with string-encoded. See 1.1 spec for further change log details. |
| 1.2 | Mar 2017 | Request | As previewed in 1.1, deprecating the AdUnit and LayoutID fields - they were replaced in 1.1 with Placement and Context. |
| 1.2 | Mar 2017 | Event Trackers, Request, Response | Add new support for declared types of event tracking in the bid request and an array of responses for tracking in the response. Marking previous imptrackers and jstracker as to be deprecated. |
| 1.2 | Mar 2017 | Request, Response | Added support for supply source to indicate whether they support displaying a link to a custom privacy notice, and for transmitting said URL in the response. |
| 1.2 | Mar 2017 | Request, Response, Title, Data, Image | Added support for third-party ad serving / dynamic creative by establishing a way to respond with a URL to retrieve the assets rather than including all the assets inline. |
| 1.2 | Mar 2017 | Examples | Updated examples to reflect all above changes. |
| 1.2 | July 2017 | Request, Response | Added support for Dynamic Content Specification as an alternate method for third-party ad serving, in beta. |
| Attribute | Type | Description |
|---|---|---|
| ver | string; optional; default 1.2 | Version of the Native Markup version in use. |
| context | integer; recommended | The context in which the ad appears. See Table of Context IDs below for a list of supported context types. |
| contextsubtype | integer; optional | A more detailed context in which the ad appears. See Table of Context SubType IDs below for a list of supported context subtypes. |
| plcmttype | integer; recommended | The design/format/layout of the ad unit being offered. See Table of Placement Type IDs below for a list of supported placement types. |
| plcmtcnt | integer; optional; default 1 | The number of identical placements in this Layout. Refer Section 8.1 Multiplacement Bid Requests for further detail. |
| seq | integer; optional; default 0 | 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). |
| assets | array of objects; required | An array of Asset Objects. Any bid response must comply with the array of elements expressed in the bid request. |
| aurlsupport | int; optional; default 0 | Whether the supply source / impression supports returning an assetsurl instead of an asset object. 0 or the absence of the field indicates no such support. |
| durlsupport | int; optional; default 0 | Whether the supply source / impression supports returning a dco url instead of an asset object. 0 or the absence of the field indicates no such support. Beta feature. |
| eventtrackers | array of objects; optional | Specifies what type of event tracking is supported - see Event Trackers Request Object. |
| privacy | integer; recommended; default 0 | Set to 1 when the native ad supports buyer-specific privacy notice. Set to 0 (or field absent) when the native ad doesn’t support custom privacy links or if support is unknown. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| id | int; required | Unique asset ID, assigned by exchange. Typically a counter for the array. |
| required | int; optional; default 0 | Set to 1 if asset is required (exchange will not accept a bid without it). |
| title | 1. object; recommended | Title object for title assets. See TitleObject definition. |
| img | 1. object; recommended | Image object for image assets. See ImageObject definition. |
| video | 1. object; optional | Video object for video assets. See the Video request object definition. Note that in-stream (i.e., preroll, etc.) video ads are not part of Native. Native ads may contain a video as the ad creative itself. |
| data | 1. object; recommended | Data object for brand name, description, ratings, prices, etc. See DataObject definition. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| len | int; required | Maximum length of the text in the title element. Recommended to be 25, 90, or 140. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| type | integer; optional | Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format. See Table Image Asset Types. |
| w | integer; optional | Width of the image in pixels. |
| wmin | integer; recommended | The minimum requested width of the image in pixels. This option should be used for any rescaling of images by the client. Either w or wmin should be transmitted. If only w is included, it should be considered an exact requirement. |
| h | integer; optional | Height of the image in pixels. |
| hmin | integer; recommended | The minimum requested height of the image in pixels. This option should be used for any rescaling of images by the client. Either h or hmin should be transmitted. If only h is included, it should be considered an exact requirement. |
| mimes | array; optional; default All types allowed | Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg” and “image/gif”. Each Exchange should have their own list of supported types in the integration docs. If blank, assume all types are allowed. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| mimes | array of string; required | Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms-wmv” for Windows Media, “video/x-flv” for Flash Video, or “video/mp4”. Note that native frequently does not support Flash. |
| minduration | integer; required | Minimum video ad duration in seconds. |
| maxduration | integer; required | Maximum video ad duration in seconds. |
| protocols | array of integers; required | An array of video protocols the publisher can accept in the bid response. See OpenRTB Table ‘Video Bid Response Protocols’ for a list of possible values. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| type | integer; required | Type ID of the element supported by the publisher. The publisher can display this information in an appropriate format. See Data Asset Types table for commonly used examples. |
| len | integer; optional | Maximum length of the text in the element’s response. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| event | integer; required | Type of event available for tracking. See Event Types table. |
| methods | array of integers; required | Array of the types of tracking available for the given event. See Event Tracking Methods table. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| ver | string; recommended; default "1.2" | Version of the Native Markup version in use. |
| assets | array of objects; recommended | List of native ad’s assets. Required if no assetsurl. Recommended as fallback even if assetsurl is provided. |
| assetsurl1 | string; optional | URL of an alternate source for the assets object. Where present, overrides the asset object in the response. |
| dcourl | string; optional | URL where a dynamic creative specification may be found for populating this ad. Beta option, where present, overrides the asset object in the response. |
| link | object; required | Destination Link. This is the default link object for the ad. Individual assets can also have a link object. |
| imptrackers | array of string; optional | Array of impression tracking URLs. To be deprecated - replaced with eventtrackers. |
| jstracker | string; optional | Optional JavaScript impression tracker. To be deprecated - replaced with eventtrackers. |
| eventtrackers | array of objects; optional | Array of tracking objects to run with the ad, replacing imptrackers and jstracker. |
| privacy | string; optional | If support was indicated in the request, URL of a page informing the user about the buyer’s targeting activity. |
| ext | object; optional | This object is a placeholder for custom JSON to support flexibility beyond the standard specification. |
| Attribute | Scope | Description |
|---|---|---|
| id | int; optional | Optional if assetsurl/dcourl is being used; required if embedded asset is being used. |
| required | int; optional; default 0 | Set to 1 if asset is required. (bidder requires it to be displayed). |
| title | 1. object; optional | Title object for title assets. See TitleObject definition. |
| img | 1. object; optional | Image object for image assets. See ImageObject definition. |
| video | 1. object; optional | Video object for video assets. Note that in-stream video ads are not part of Native. |
| data | 1. object; optional | Data object for ratings, prices etc. |
| link | object; optional | Link object for call to actions. Applies if the asset item is activated (clicked). |
| ext2 | objects; optional | This object is a placeholder for custom JSON to support flexibility beyond the standard specification. |
| Attribute | Type | Description |
|---|---|---|
| text | String; required | The text associated with the text element. |
| len | integer; optional | The length of the title being provided. Required if using assetsurl/dcourl representation, optional if using embedded asset representation. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| type | integer; optional | Required for assetsurl or dcourl responses, not required for embedded asset responses. The type of image element being submitted from the Image Asset Types table. |
| url | string; required | URL of the image asset. |
| w | integer; recommended | Width of the image in pixels. Recommended for embedded asset responses. Required for assetsurl/dcourl responses if multiple assets of the same type are submitted. |
| h | integer; recommended | Height of the image in pixels. Recommended for embedded asset responses. Required for assetsurl/dcourl responses if multiple assets of the same type are submitted. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| type | integer; optional | Required for assetsurl/dcourl responses, not required for embedded asset responses. The type of data element being submitted from the Data Asset Types table. |
| len | integer; optional | Required for assetsurl/dcourl responses, not required for embedded asset responses. The length of the data element being submitted. Where applicable, must comply with the recommended maximum lengths in the Data Asset Types table. |
| value | string; required | The formatted string of data to be displayed. Can contain a formatted value such as “5 stars” or “$10” or “3.4 stars out of 5”. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| vasttag | string; required | vast xml. |
| Attribute | Type | Description |
|---|---|---|
| url | string; required | Landing URL of the clickable link. |
| clicktrackers | array of strings; optional | List of third-party tracker URLs to be fired on click of the URL. |
| fallback | string (URL); optional | Fallback URL for deeplink. To be used if the URL given in url is not supported by the device. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Attribute | Type | Description |
|---|---|---|
| event | integer; required | Type of event to track. See Event Types table. |
| method | integer; required | Type of tracking requested. See Event Tracking Methods table. |
| url | text; optional | The URL of the image or js. Required for image or js, optional for custom. |
| customdata | object containing key:value pairs; optional | To be agreed individually with the exchange, an array of key:value objects for custom tracking, for example the account number of the DSP with a tracking company. IE {“accountnumber”:”123”}. |
| ext | object; optional | This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification. |
| Context Type ID | Description |
|---|---|
| 1 | Content-centric context such as newsfeed, article, image gallery, video gallery, or similar. |
| 2 | Social-centric context such as social network feed, email, chat, or similar. |
| 3 | Product context such as product listings, details, recommendations, reviews, or similar. |
| 500+ | To be defined by the exchange. |
| Context SubType ID | Description |
|---|---|
| 10 | General or mixed content. |
| 11 | Primarily article content (which of course could include images, etc as part of the article). |
| 12 | Primarily video content. |
| 13 | Primarily audio content. |
| 14 | Primarily image content. |
| 15 | User-generated content - forums, comments, etc. |
| 20 | General social content such as a general social network. |
| 21 | Primarily email content. |
| 22 | Primarily chat/IM content. |
| 30 | Content focused on selling products, whether digital or physical. |
| 31 | Application store/marketplace. |
| 32 | Product reviews site primarily (which may sell products secondarily). |
| 500+ | To be defined by the exchange. |
| Placement Type ID | Description |
|---|---|
| 1 | In the feed of content - for example as an item inside the organic feed/grid/listing/carousel/in menu tile. |
| 2 | In the atomic unit of the content - IE in the article page or single image page. |
| 3 | Outside the core content - for example in the ads section on the right rail, as a banner-style placement near the content, this could also be a headline banner on CTV devices, etc. |
| 4 | Recommendation widget, most commonly presented below the article content. |
| 500+ | To be defined by the exchange. |
| Type ID | Name | Description | Format | Recommendations |
|---|---|---|---|---|
| 1 | sponsored | Sponsored By message where response should contain the brand name of the sponsor. | text | Required. Max 25 or longer. |
| 2 | desc | Descriptive text associated with the product or service being advertised. Longer length of text in response may be truncated or ellipsed by the exchange. | text | Recommended. Max 140 or longer. |
| 3 | rating | Rating of the product being offered to the user. For example an app’s rating in an app store from 0-5. | number formatted as string | Optional. 0-5 integer formatted as string. |
| 4 | likes | Number of social ratings or “likes” of the product being offered to the user. | number formatted as string | |
| 5 | downloads | Number downloads/installs of this product. | number formatted as string | |
| 6 | price | Price for product / app / in-app purchase. Value should include currency symbol in localised format. | number formatted as string | |
| 7 | salesprice | Sale price that can be used together with price to indicate a discounted price compared to a regular price. Value should include currency symbol in localised format. | number formatted as string | |
| 8 | phone | phone number | formatted string | |
| 9 | address | Address | text | |
| 10 | desc2 | Additional descriptive text associated with the product or service being advertised. | text | |
| 11 | displayurl | Display URL for the text ad. To be used when sponsoring entity doesn’t own the content. IE sponsored by BRAND on SITE (where SITE is transmitted in this field). | text | |
| 12 | ctatext | CTA description - descriptive text describing a ‘call to action’ button for the destination URL. | text | Optional. Max 15 or longer. |
| 500+ | XXX | Reserved for Exchange specific usage numbered above 500. | Unknown |
| Type ID | Name | Description | Recommendations |
|---|---|---|---|
| 1 | Icon | Icon image |
Optional. max height: at least 50 aspect ratio: 1:1 |
| 3 | Main | Large image preview for the ad |
At least one of 2 size variants required: Small Variant: max height: at least 200 max width: at least 200, 267, or 382 aspect ratio: 1:1, 4:3, or 1.91:1 Large Variant: max height: at least 627 max width: at least 627, 836, or 1198 aspect ratio: 1:1, 4:3, or 1.91:1 |
| 500+ | XXX | Reserved for Exchange specific usage numbered above 500 | No recommendations |
| Type ID | Name | Description |
|---|---|---|
| 1 | impression | Impression |
| 2 | viewable-mrc50 | Visible impression using MRC definition at 50% in view for 1 second |
| 3 | viewable-mrc100 | 100% in view for 1 second (ie GroupM standard) |
| 4 | viewable-video50 | Visible impression for video using MRC definition at 50% in view for 2 seconds |
| 500+ | exchange-specific |
| Type ID | Name | Description |
|---|---|---|
| 1 | img | Image-pixel tracking - URL provided will be inserted as a 1x1 pixel at the time of the event. |
| 2 | js | Javascript-based tracking - URL provided will be inserted as a js tag at the time of the event. |
| 500+ | exchange-specific | Could include custom measurement companies such as moat, doubleverify, IAS, etc - in this case additional elements will often be passed. |