The imp.native object in bid requests allows you to indicate that the impression is for a Native ad opportunity. Index Exchange (Index) sends Native bid requests to DSPs who support the Native ad format. The request must conform to the OpenRTB Dynamic Native Ads API Specification Version 1.2 which defines the request parameters markup structure of Native ad units.
Request object
The native.request object defines the native advertising opportunity available for a bid through this bid request. It is included directly in the impression object if the impression offered for the auction is a native ad format.
| Field | Type | Description |
|---|---|---|
| String; required | The version of the native markup in use. |
| Integer; optional | The layout ID of the native ad unit. For more information about the supported layout IDs, see List of references for native ads. Note: This field was deprecated in Native ads API specification version 1.1. |
| Integer; optional | The ad unit ID of the native ad unit. For more information about the supported ad unit IDs, see List of references for native ads. Note: This field was deprecated in Native ads API specification version 1.1. |
| Integer; optional | The context in which the ad appears. For more information about the supported context type IDs, see List of references for native ads. |
| Integer; optional | A more detailed context in which the ad appears. For more information about the supported context subtype IDs, see List of references for native ads. |
| Integer; optional | The design, format, and layout of the ad unit being offered. For more information about the supported placement type IDs, see List of references for native ads. |
| Integer; optional | The number of identical placements in this layout. |
| Integer; optional | Specifies the ad layout sequence, where Note: This field is generally not used in combination with |
| Object array; required | An array of |
| Integer; optional | Specifies whether the supply source supports returning an |
| Integer; optional | Specifies whether the supply source supports returning a |
| Object array; optional | Specifies the type of event tracking supported. |
| Integer; optional | Specifies whether the native ad supports privacy; where:
|
Assets request object
This is the main container object for each asset requested or supported on behalf of the rendering client. Only one of the {title,img,video,data} objects should be present in each object. All others should be null or absent. The id must be unique within the asset array so that the response can be aligned.
| Field | Type | Description |
|---|---|---|
| Integer; required | Unique asset ID for the request. Typically, a counter for the array. |
| Integer; optional | Specifies whether the asset is required to be present in the bid response; where:
|
| Object; optional | The title object for title assets. |
| Object; optional | The image object for image assets. |
| Object; optional | The video object for video assets. |
| Object; optional | The data object for ratings and prices. |
Title request object
Use the title object for the title element of the native ad.
| Field | Type | Description |
|---|---|---|
| Integer; required | The maximum length of the text in the title element. Recommended values are 25, 90, or 140. |
Image request object
Use the img object for all of the image elements of the native ad such as icons or main image.
| Field | Type | Description |
|---|---|---|
| Integer; optional | The type ID of the image element that is supported by the Media Owner. The Media Owner can display this information in an appropriate format. For more information about the supported image asset types, see List of references for native ads. |
| Integer; optional | The width of the image in pixels. |
| Object; optional | The height of the image in pixels. |
| Object; optional | The minimum requested width of the image in pixels. This option should be used for any rescaling of images by the client. Either |
| Object; optional | The minimum requested height of the image in pixels. This option should be used for any rescaling of images by the client. Either |
| String array; optional | Allowed list of content MIME types supported. If blank, assume all types are allowed. |
Video object
Use the video object for all video elements supported in the native ad. This corresponds to the OpenRTB video object. The following table lists the required attributes of the video object for native ads. For more information about the optional attributes, see the OpenRTB 2.6 Specification.
| Field | Type | Description |
|---|---|---|
| String array; required | The content MIME types supported. |
| Integer; required | The minimum video ad duration in seconds. |
| Integer; required | The maximum video ad duration in seconds. |
| Integer array; required | An array of supported video protocols. At least one supported protocol must be specified, where:
|
Data request object
Use the data object for all non-core elements of the native unit such as ratings, review count, stars, download count, and descriptions. It is also generic for future native ad elements.
| Field | Type | Description |
|---|---|---|
| Integer; required | The type ID of the element supported by the Media Owner. The Media Owner can display this information in an appropriate format. For more information about the supported data asset types, see List of references for native ads. |
| Integer; optional | The maximum length of the text in the element's response. |
Event trackers request object
The eventtrackers object specifies the type of events the bidder can request to be tracked in the bid response and specifies which types of tracking are available for each event type. It is included as an array in the request.
| Field | Type | Description |
|---|---|---|
| Integer; required | The type of event available for tracking. For more information about the supported event types, see List of references for native ads. |
| Integer array; required | An array of the types of tracking available for a given event. For more information about the supported event tracking methods, see List of references for native ads. |