@@ -53,15 +53,15 @@ type CDATAString struct {
5353type InLine struct {
5454 // The name of the ad server that returned the ad
5555 AdSystem * AdSystem
56- // The common name of the ad
57- AdTitle CDATAString
5856 // One or more URIs that directs the video player to a tracking resource file that the
5957 // video player should request when the first frame of the ad is displayed
6058 Impressions []Impression `xml:"Impression"`
6159 // Any ad server that returns a VAST containing an <InLine> ad must generate a pseudo- unique identifier
6260 // that is appropriate for all involved parties to track the lifecycle of that ad.
6361 // Example: ServerName-47ed3bac-1768-4b9a-9d0e-0b92422ab066
6462 AdServingId string `xml:",omitempty" json:",omitempty"`
63+ // The common name of the ad
64+ AdTitle CDATAString
6565 // The container for one or more <Creative> elements
6666 Creatives []Creative `xml:"Creatives>Creative"`
6767 // A string value that provides a longer description of the ad.
@@ -162,14 +162,14 @@ type Creative struct {
162162 AdID string `xml:"AdID,attr,omitempty" json:",omitempty"`
163163 // The technology used for any included API
164164 APIFramework string `xml:"apiFramework,attr,omitempty" json:",omitempty"`
165+ // If present, provides a VAST 4.x universal ad id
166+ UniversalAdID * UniversalAdID `xml:"UniversalAdId,omitempty" json:",omitempty"`
165167 // If present, defines a linear creative
166168 Linear * Linear `xml:",omitempty" json:",omitempty"`
167169 // If defined, defins companions creatives
168170 CompanionAds * CompanionAds `xml:",omitempty" json:",omitempty"`
169171 // If defined, defines non linear creatives
170172 NonLinearAds * NonLinearAds `xml:",omitempty" json:",omitempty"`
171- // If present, provides a VAST 4.x universal ad id
172- UniversalAdID * UniversalAdID `xml:"UniversalAdId,omitempty" json:",omitempty"`
173173 // When an API framework is needed to execute creative, a
174174 // <CreativeExtensions> element can be added under the <Creative>. This
175175 // extension can be used to load an executable creative with or without using
@@ -248,13 +248,13 @@ type Linear struct {
248248 // indicates when the skip control should be provided after the creative
249249 // begins playing.
250250 SkipOffset * Offset `xml:"skipoffset,attr,omitempty" json:",omitempty"`
251- // Duration in standard time format, hh:mm:ss
252- Duration Duration
253251 AdParameters * AdParameters `xml:",omitempty" json:",omitempty"`
254252 Icons * Icons `json:",omitempty"`
255253 TrackingEvents []Tracking `xml:"TrackingEvents>Tracking,omitempty" json:",omitempty"`
256- VideoClicks * VideoClicks `xml:",omitempty" json:",omitempty"`
254+ // Duration in standard time format, hh:mm:ss
255+ Duration Duration
257256 MediaFiles []MediaFile `xml:"MediaFiles>MediaFile,omitempty" json:",omitempty"`
257+ VideoClicks * VideoClicks `xml:",omitempty" json:",omitempty"`
258258}
259259
260260// LinearWrapper defines a wrapped linear creative
@@ -539,6 +539,6 @@ type MediaFile struct {
539539// UniversalAdID describes a VAST 4.x universal ad id.
540540type UniversalAdID struct {
541541 IDRegistry string `xml:"idRegistry,attr"`
542- IDValue string `xml:"idValue,attr"`
542+ IDValue string `xml:"idValue,attr,omitempty "`
543543 ID string `xml:",cdata"`
544544}
0 commit comments