Struct openrtb2::Audio

source ·
pub struct Audio {
Show 19 fields pub mimes: Vec<String>, pub minduration: Option<i32>, pub maxduration: Option<i32>, pub protocols: Option<Vec<Protocol>>, pub startdelay: Option<StartDelay>, pub sequence: Option<i32>, pub battr: Option<CreativeAttribute>, pub maxextended: Option<MaxExtendedAdDuration>, pub minbitrate: Option<i32>, pub maxbitrate: Option<i32>, pub delivery: Option<Vec<ContentDeliveryMethod>>, pub companionad: Option<Vec<Banner>>, pub api: Option<Vec<ApiFramework>>, pub companiontype: Option<Vec<CompanionType>>, pub maxseq: Option<i32>, pub feed: Option<FeedType>, pub stitched: Option<bool>, pub nvol: Option<VolumeNormalizationMode>, pub ext: Option<Map<String, Value>>,
}
Expand description

3.2.8 Object: Audio

This object represents an audio type impression. Many of the fields are non-essential for minimally viable transactions, but are included to offer fine control when needed. Audio in OpenRTB generally assumes compliance with the DAAST standard. As such, the notion of companion ads is supported by optionally including an array of Banner objects (refer to the Banner object in Section 3.2.6) that define these companion ads.

The presence of a Audio as a subordinate of the Imp object indicates that this impression is offered as an audio type impression. At the publisher’s discretion, that same impression may also be offered as banner, video, 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§

§mimes: Vec<String>

string array; required Content MIME types supported (e.g., “audio/mp4”).

§minduration: Option<i32>

integer; recommended Minimum audio ad duration in seconds.

§maxduration: Option<i32>

integer; recommended Maximum audio ad duration in seconds.

§protocols: Option<Vec<Protocol>>

integer array; recommended Array of supported audio protocols. Refer to List 5.8.

§startdelay: Option<StartDelay>

integer; recommended Indicates the start delay in seconds for pre-roll, mid-roll, or post-roll ad placements. Refer to List 5.12.

§sequence: Option<i32>

integer If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.

§battr: Option<CreativeAttribute>

integer array Blocked creative attributes. Refer to List 5.3.

§maxextended: Option<MaxExtendedAdDuration>

integer Maximum extended ad duration if extension is allowed. If blank or 0, extension is not allowed. If -1, extension is allowed, and there is no time limit imposed. If greater than 0, then the value represents the number of seconds of extended play supported beyond the maxduration value.

§minbitrate: Option<i32>

integer Minimum bit rate in Kbps.

§maxbitrate: Option<i32>

integer Maximum bit rate in Kbps.

§delivery: Option<Vec<ContentDeliveryMethod>>

integer array Supported delivery methods (e.g., streaming, progressive). If none specified, assume all are supported. Refer to List 5.15.

§companionad: Option<Vec<Banner>>

object array Array of Banner objects (Section 3.2.6) if companion ads are available.

§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.

§companiontype: Option<Vec<CompanionType>>

integer array Supported DAAST companion ad types. Refer to List 5.14. Recommended if companion Banner objects are included via the companionad array.

§maxseq: Option<i32>

integer The maximum number of ads that can be played in an ad pod.

§feed: Option<FeedType>

integer Type of audio feed. Refer to List 5.16.

§stitched: Option<bool>

integer Indicates if the ad is stitched with audio content or delivered independently, where 0 = no, 1 = yes.

§nvol: Option<VolumeNormalizationMode>

integer Volume normalization mode. Refer to List 5.17.

§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.