pub struct Linear<'a> {
pub skipoffset: Option<Duration>,
pub icons: Option<Icons<'a>>,
pub tracking_events: Option<TrackingEvents<'a>>,
pub ad_parameters: Option<AdParameters<'a>>,
pub duration: Option<Duration>,
pub media_files: Option<MediaFiles<'a>>,
pub video_clicks: Option<VideoClicks<'a>>,
}Expand description
Linear Ads are the video or audio formatted ads that play linearly within the streaming content, meaning before the streaming content, during a break, or after the streaming content.
§Linear base type:
<xs:complexType name="Linear_Base_type">
<xs:attribute name="skipoffset" use="optional">
<xs:sequence>
<xs:element name="Icons" minOccurs="0" maxOccurs="1">
<xs:element name="TrackingEvents" minOccurs="0" maxOccurs="1" type="vast:TrackingEvents_type" />
</xs:sequence>
</xs:complexType>§Linear in InLine:
<xs:complexType name="Linear">
<xs:complexContent>
<xs:extension base="vast:Linear_Base_type">
<xs:sequence>
<xs:element name="AdParameters" minOccurs="0" maxOccurs="1" type="vast:AdParameters_type">
<xs:element name="Duration" minOccurs="1" maxOccurs="1" type="xs:time">
<xs:element name="MediaFiles" minOccurs="1" maxOccurs="1">
<xs:element name="VideoClicks" minOccurs="0" maxOccurs="1" type="vast:VideoClicks_type" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>§Linear in Wrapper:
<xs:complexType name="Linear">
<xs:complexContent>
<xs:extension base="vast:Linear_Base_type">
<xs:sequence>
<xs:element name="VideoClicks" minOccurs="0" maxOccurs="1" type="vast:VideoClicks_type" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>Fields§
§skipoffset: Option<Duration>The time at which the ad becomes skippable, if absent, the ad is not skippable.
icons: Option<Icons<'a>>The container for zero or one <Icons> element.
tracking_events: Option<TrackingEvents<'a>>The container for zero or one <TrackingEvents> element.
ad_parameters: Option<AdParameters<'a>>InLine: The container for zero or one <AdParameters> element.
Wrapper: No use this field.
duration: Option<Duration>InLine: The ad server uses the <Duration> element to denote the
intended playback duration for the video or audio component of the ad. Required this
field inside InLine element.
Wrapper: No use this field.
media_files: Option<MediaFiles<'a>>InLine: The container for zero or one <MediaFiles> element.
Required this field inside InLine element.
Wrapper: No use this field.
video_clicks: Option<VideoClicks<'a>>The container for zero or one <VideoClicks> element.