Struct openrtb2::Banner

source ·
pub struct Banner {
Show 17 fields pub format: Option<Vec<Format>>, pub w: Option<i32>, pub h: Option<i32>, pub wmax: Option<i32>, pub hmax: Option<i32>, pub wmin: Option<i32>, pub hmin: Option<i32>, pub btype: Option<Vec<BannerAdType>>, pub battr: Option<Vec<CreativeAttribute>>, pub pos: Option<AdPosition>, pub mimes: Option<Vec<String>>, pub topframe: Option<bool>, pub expdir: Option<Vec<ExpandableDirection>>, pub api: Option<Vec<ApiFramework>>, pub id: Option<String>, pub vcm: Option<bool>, pub ext: Option<Map<String, Value>>,
}
Expand description

3.2.6 Object: Banner

This object represents the most general type of impression. Although the term “banner” may have very specific meaning in other contexts, here it can be many things including a simple static image, an expandable ad unit, or even in-banner video (refer to the Video object in Section 3.2.7 for the more generalized and full featured video ad units). An array of Banner objects can also appear within the Video to describe optional companion ads defined in the VAST specification.

The presence of a Banner as a subordinate of the Imp object indicates that this impression is offered as a banner type impression. At the publisher’s discretion, that same impression may also be offered as video, audio, and/or native by also including as Imp subordinates objects of those types. However, any given bid for the impression must conform to one of the offered types.

Fields§

§format: Option<Vec<Format>>

object array; recommended Array of format objects (Section 3.2.10) representing the banner sizes permitted. If none are specified, then use of the h and w attributes is highly recommended.

§w: Option<i32>

integer Exact width in device independent pixels (DIPS); recommended if no format objects are specified.

§h: Option<i32>

integer Exact height in device independent pixels (DIPS); recommended if no format objects are specified.

§wmax: Option<i32>
👎Deprecated since 0.1.0: Please use the format field instead

integer; DEPRECATED Maximum width in device independent pixels (DIPS).

§hmax: Option<i32>
👎Deprecated since 0.1.0: Please use the format field instead

integer; DEPRECATED Maximum height in device independent pixels (DIPS).

§wmin: Option<i32>
👎Deprecated since 0.1.0: Please use the format field instead

integer; DEPRECATED Minimum width in device independent pixels (DIPS).

§hmin: Option<i32>
👎Deprecated since 0.1.0: Please use the format field instead

integer; DEPRECATED Minimum height in device independent pixels (DIPS).

§btype: Option<Vec<BannerAdType>>

integer array Blocked banner ad types. Refer to List 5.2.

§battr: Option<Vec<CreativeAttribute>>

integer array Blocked creative attributes. Refer to List 5.3.

§pos: Option<AdPosition>

integer Ad position on screen. Refer to List 5.4.

§mimes: Option<Vec<String>>

string array Content MIME types supported. Popular MIME types may include “application/x-shockwave-flash”, “image/jpg”, and “image/gif”.

§topframe: Option<bool>

integer Indicates if the banner is in the top frame as opposed to an iframe, where 0 = no, 1 = yes.

§expdir: Option<Vec<ExpandableDirection>>

integer array Directions in which the banner may expand. Refer to List 5.5.

§api: Option<Vec<ApiFramework>>

integer array List of supported API frameworks for this impression. Refer to List 5.6. If an API is not explicitly listed, it is assumed not to be supported.

§id: Option<String>

string Unique identifier for this banner object. Recommended when Banner objects are used with a Video object (Section 3.2.7) to represent an array of companion ads. Values usually start at 1 and increase with each object; should be unique within an impression.

§vcm: Option<bool>

integer Relevant only for Banner objects used with a Video object (Section 3.2.7) in an array of companion ads. Indicates the companion banner rendering mode relative to the associated video, where 0 = concurrent, 1 = end-card.

§ext: Option<Map<String, Value>>

object Placeholder for exchange-specific extensions to OpenRTB.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.