pub struct ViewableImpression<'a> {
pub id: Option<Cow<'a, str>>,
pub viewables: Vec<Cow<'a, str>>,
pub not_viewables: Vec<Cow<'a, str>>,
pub view_undetermineds: Vec<Cow<'a, str>>,
}Expand description
The ad server may provide URIs for tracking publisher-determined viewability, for both the
InLine ad and any Wrappers, using the
<ViewableImpression> element.
<xs:complexType name="ViewableImpression" >
<xs:attribute name="id" type="xs:string" use="optional">
<xs:sequence>
<xs:element name="Viewable" minOccurs="0" maxOccurs="unbounded" type="xs:anyURI">
<xs:element name="NotViewable" minOccurs="0" maxOccurs="unbounded" type="xs:anyURI">
<xs:element name="ViewUndetermined" minOccurs="0" maxOccurs="unbounded" type="xs:anyURI">
</xs:sequence>
</xs:complexType>Fields§
§id: Option<Cow<'a, str>>An ad server id for the impression. Impression resources of the same id should be requested at the same time or as close in time as possible to help prevent discrepancies.
viewables: Vec<Cow<'a, str>>A URI that directs the video player to a tracking resource file that the video player should request at the time that criteria is met for a viewable impression. This can occur zero to many times.
not_viewables: Vec<Cow<'a, str>>A URI that directs the video player to a tracking resource file that the video player should request if the ad is executed but never meets criteria for a viewable impression.
view_undetermineds: Vec<Cow<'a, str>>A URI that directs the video player to a tracking resource file that the video player should request if the player cannot determine whether criteria is met for a viewable impression. This can occur zero to many times.
Trait Implementations§
Source§impl<'a> Clone for ViewableImpression<'a>
impl<'a> Clone for ViewableImpression<'a>
Source§fn clone(&self) -> ViewableImpression<'a>
fn clone(&self) -> ViewableImpression<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more