[][src]Struct openrtb_native1::request::Request

pub struct Request<'a> {
    pub ver: Version,
    pub context: Option<ContextType>,
    pub contextsubtype: Option<ContextSubType>,
    pub plcmttype: Option<PlacementType>,
    pub plcmtcnt: i32,
    pub seq: i32,
    pub assets: Vec<Asset<'a>>,
    pub aurlsupport: bool,
    pub durlsupport: bool,
    pub eventtrackers: Option<Vec<EventTracker<'a>>>,
    pub privacy: bool,
    pub ext: Option<Object<'a>>,
}

4.1 Native Markup Request Object

The Native Object defines the native advertising opportunity available for bid via this bid request. It will be included as a JSON-encoded string in the bid request’s imp.native field or as a direct JSON object, depending on the choice of the exchange. While OpenRTB 2.x officially supports only JSON-encoded strings, many exchanges have implemented a formal object. Check with your integration docs.

Fields

ver: Version

optional; string; 1.2 Version of the Native Markup version in use.

context: Option<ContextType>

recommended; integer; - The context in which the ad appears. See Table of Context IDs below for a list of supported context types.

contextsubtype: Option<ContextSubType>

optional; integer; - A more detailed context in which the ad appears. See Table of Context SubType IDs below for a list of supported context subtypes.

plcmttype: Option<PlacementType>

recommended; integer; - 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: i32

optional; integer; 1 The number of identical placements in this Layout. Refer Section 8.1 Multiplacement Bid Requests for further detail.

seq: i32

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: Vec<Asset<'a>>

required; array of objects; - An array of Asset Objects. Any bid response must comply with the array of elements expressed in the bid request.

aurlsupport: bool

optional; integer; 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: bool

optional; integer; 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: Option<Vec<EventTracker<'a>>>

optional; array of objects; - Specifies what type of event tracking is supported - see Event Trackers Request Object.

privacy: bool

recommended; integer; 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: Option<Object<'a>>

optional; object; - 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.

Trait Implementations

impl<'a> Clone for Request<'a>[src]

impl<'a> Debug for Request<'a>[src]

impl<'a> Default for Request<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Request<'a>[src]

impl<'a> PartialEq<Request<'a>> for Request<'a>[src]

impl<'a> Serialize for Request<'a>[src]

impl<'a> StructuralPartialEq for Request<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Request<'a>

impl<'a> Send for Request<'a>

impl<'a> Sync for Request<'a>

impl<'a> Unpin for Request<'a>

impl<'a> UnwindSafe for Request<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DefaultExt for T where
    T: Default + PartialEq<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.