[−][src]Struct openrtb_native1::request::Request
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> PartialEq<Request<'a>> for Request<'a>
[src]
pub fn eq(&self, other: &Request<'a>) -> bool
[src]
pub fn ne(&self, other: &Request<'a>) -> bool
[src]
impl<'a> Serialize for Request<'a>
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DefaultExt for T where
T: Default + PartialEq<T>,
[src]
T: Default + PartialEq<T>,
pub fn is_default(&self) -> bool
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,