Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Vast 4.2 examples #66

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions test/fixtures/strict/iab/vast-2/Inline_Non-Linear_VAST20.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<VAST version="2.0">
<Ad id="overlay-1">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750100</AdTitle>
<Error>myErrorUrl.com</Error>
<Impression>http://example.com/trackingurl/impression</Impression>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear width="480" height="150" minSuggestedDuration="00:00:05" scalable="true" maintainAspectRatio="true">
<StaticResource creativeType="image/png">
<![CDATA[
http://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg
]]>
</StaticResource>
<NonLinearClickThrough>
<![CDATA[http://iabtechlab.com]]>
</NonLinearClickThrough>

</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
59 changes: 59 additions & 0 deletions test/fixtures/strict/iab/vast-4/Icon-Click_fallbacks-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<VAST version="4.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.iab.com/VAST">
<Ad id="20001" sequence="1">
<InLine>
<AdSystem version="1">iabtechlab</AdSystem>
<Error><![CDATA[https://example.com/error]]></Error>
<Impression id="Impression-ID"><![CDATA[https://example.com/track/impression]]></Impression>
<Pricing model="cpm" currency="USD">
<![CDATA[ 25.00 ]]>
</Pricing>
<AdServingId>a532d16d-4d7f-4440-bd29-2ec0e693fc80</AdServingId>
<AdTitle>iabtechlab video ad</AdTitle>
<Creatives>
<Creative id="5480" sequence="1" adId="2447226">
<Linear>
<Icons>
<Icon>
<StaticResource creativeType="image/png"><![CDATA[ https://example.org/images/ad_icon_img.png ]]></StaticResource>
<IconClicks>
<IconClickFallbackImages>
<IconClickFallbackImage>
<AltText>The live click interaction</AltText>
<StaticResource ><![CDATA[ https://example.org/images/ad_icon_clicked.png ]]></StaticResource>
</IconClickFallbackImage>
</IconClickFallbackImages>
</IconClicks>
</Icon>
</Icons>
<TrackingEvents>
<Tracking event="start" ><![CDATA[https://example.com/tracking/start]]></Tracking>
<Tracking event="progress" offset="00:00:10"><![CDATA[http://example.com/tracking/progress-10]]></Tracking>
<Tracking event="firstQuartile"><![CDATA[https://example.com/tracking/firstQuartile]]></Tracking>
<Tracking event="midpoint"><![CDATA[https://example.com/tracking/midpoint]]></Tracking>
<Tracking event="thirdQuartile"><![CDATA[https://example.com/tracking/thirdQuartile]]></Tracking>
<Tracking event="complete"><![CDATA[https://example.com/tracking/complete]]></Tracking>
</TrackingEvents>
<Duration>00:00:16</Duration>
<MediaFiles>
<MediaFile id="5241" delivery="progressive" type="video/mp4" bitrate="2000" width="1280" height="720" minBitrate="1500" maxBitrate="2500" scalable="1" maintainAspectRatio="1" codec="H.264">
<![CDATA[https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro.mp4]]>
</MediaFile>
<MediaFile id="5244" delivery="progressive" type="video/mp4" bitrate="1000" width="854" height="480" minBitrate="700" maxBitrate="1500" scalable="1" maintainAspectRatio="1" codec="H.264">
<![CDATA[https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro-mid-resolution.mp4]]>
</MediaFile>
<MediaFile id="5246" delivery="progressive" type="video/mp4" bitrate="600" width="640" height="360" minBitrate="500" maxBitrate="700" scalable="1" maintainAspectRatio="1" codec="H.264">
<![CDATA[https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro-low-resolution.mp4]]>
</MediaFile>
</MediaFiles>
<VideoClicks>
<ClickThrough id="blog">
<![CDATA[https://iabtechlab.com]]>
</ClickThrough>
</VideoClicks>
</Linear>
<UniversalAdId idRegistry="Ad-ID">8465</UniversalAdId>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
23 changes: 11 additions & 12 deletions test/fixtures/strict/iab/vast-4/Inline_Non-Linear_Tag-test.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<VAST version="4.0" xmlns="http://www.iab.com/VAST">
<Ad id="20005" sequence="1" conditionalAd="false">
<VAST version="4.2" xmlns="http://www.iab.com/VAST">
<Ad id="20005" sequence="1" >
<InLine>
<AdSystem version="4.0">iabtechlab</AdSystem>
<AdSystem version="1">iabtechlab</AdSystem>
<Error>
<![CDATA[http://example.com/error]]>
<![CDATA[https://example.com/error]]>
</Error>
<Extensions>
<Extension type="iab-Count">
Expand All @@ -13,32 +13,31 @@
</Extension>
</Extensions>
<Impression id="Impression-ID">
<![CDATA[http://example.com/track/impression]]>
<![CDATA[https://example.com/track/impression]]>
</Impression>
<Pricing model="cpm" currency="USD">
<![CDATA[ 25.00 ]]>
</Pricing>

<AdServingId>a532d16d-4d7f-4440-bd29-2ec0e693fc80</AdServingId>
<AdTitle>
<![CDATA[VAST 4.0 Pilot - Scenario 5]]>
</AdTitle>

<Creatives>
<Creative id="5480" sequence="1" adId="2447226">
<UniversalAdId idRegistry="Ad-ID" idValue="8465">8465</UniversalAdId>
<NonLinearAds>
<NonLinear>
<NonLinear width="350" height="350">
<StaticResource creativeType="image/png">
<![CDATA[http://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg]]>
<![CDATA[https://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg]]>
</StaticResource>
<NonLinearClickThrough>
<![CDATA[http://iabtechlab.com]]>
<![CDATA[https://iabtechlab.com]]>
</NonLinearClickThrough>
<NonLinearClickTracking>
<![CDATA[http://example.com/trackingurl/clickTracking]]>
<![CDATA[https://example.com/tracking/clickTracking]]>
</NonLinearClickTracking>
</NonLinear>
</NonLinearAds>
<UniversalAdId idRegistry="Ad-ID">8465</UniversalAdId>
</Creative>
</Creatives>
<Description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"_type": "VAST",
"ads": {
"_type": "SortedList",
"_value": [
{
"_type": "InLine",
"adSystem": {
"_type": "AdSystem",
"name": "2.0"
},
"adTitle": "5750100",
"categories": [],
"creatives": {
"_type": "SortedList",
"_value": [
{
"_type": "Creative",
"extensions": [],
"nonLinearAds": {
"_type": "NonLinearAds",
"nonLinears": [
{
"_type": "NonLinear",
"clickThrough": {
"_type": "Click",
"uri": "http://iabtechlab.com"
},
"clickTrackings": [],
"height": 150,
"maintainAspectRatio": true,
"minSuggestedDuration": 5,
"resource": {
"_type": "StaticResource",
"creativeType": "image/png",
"uri": "http://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg"
},
"scalable": true,
"width": 480
}
]
}
}
]
},
"errors": [
"myErrorUrl.com"
],
"extensions": [],
"id": "overlay-1",
"impressions": [
{
"_type": "Impression",
"uri": "http://example.com/trackingurl/impression"
}
],
"surveys": [],
"verifications": []
}
]
},
"errors": [
],
"version": "2.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
"_type": "VAST",
"adPod": {
"_type": "AdPod",
"ads": {
"_type": "SortedList",
"_value": [
{
"_type": "InLine",
"adSystem": {
"_type": "AdSystem",
"name": "iabtechlab",
"version": "1"
},
"adTitle": "iabtechlab video ad",
"categories": [],
"creatives": {
"_type": "SortedList",
"_value": [
{
"_type": "Creative",
"adID": "2447226",
"extensions": [],
"id": "5480",
"linear": {
"_type": "Linear",
"duration": 16,
"icons": [
{
"_type": "Icon",
"viewTrackings": []
}
],
"interactiveCreativeFiles": [],
"mediaFiles": [
{
"_type": "MediaFile",
"bitrate": 2000,
"codec": "H.264",
"delivery": "progressive",
"height": 720,
"id": "5241",
"maintainAspectRatio": true,
"maxBitrate": 2500,
"minBitrate": 1500,
"scalable": true,
"type": "video/mp4",
"uri": "https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro.mp4",
"width": 1280
},
{
"_type": "MediaFile",
"bitrate": 1000,
"codec": "H.264",
"delivery": "progressive",
"height": 480,
"id": "5244",
"maintainAspectRatio": true,
"maxBitrate": 1500,
"minBitrate": 700,
"scalable": true,
"type": "video/mp4",
"uri": "https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro-mid-resolution.mp4",
"width": 854
},
{
"_type": "MediaFile",
"bitrate": 600,
"codec": "H.264",
"delivery": "progressive",
"height": 360,
"id": "5246",
"maintainAspectRatio": true,
"maxBitrate": 700,
"minBitrate": 500,
"scalable": true,
"type": "video/mp4",
"uri": "https://iab-publicfiles.s3.amazonaws.com/vast/VAST-4.0-Short-Intro-low-resolution.mp4",
"width": 640
}
],
"trackingEvents": {
"_type": "TrackingEvents",
"_value": {
"complete": [
{
"_type": "TrackingEvent",
"uri": "https://example.com/tracking/complete"
}
],
"firstQuartile": [
{
"_type": "TrackingEvent",
"uri": "https://example.com/tracking/firstQuartile"
}
],
"midpoint": [
{
"_type": "TrackingEvent",
"uri": "https://example.com/tracking/midpoint"
}
],
"progress": [
{
"_type": "TrackingEvent",
"offset": {
"_type": "AbsoluteTimeOffset",
"value": 10
},
"uri": "http://example.com/tracking/progress-10"
}
],
"start": [
{
"_type": "TrackingEvent",
"uri": "https://example.com/tracking/start"
}
],
"thirdQuartile": [
{
"_type": "TrackingEvent",
"uri": "https://example.com/tracking/thirdQuartile"
}
]
}
},
"videoClicks": {
"_type": "VideoClicks",
"clickThrough": {
"_type": "Click",
"id": "blog",
"uri": "https://iabtechlab.com"
},
"clickTrackings": [],
"customClicks": []
}
},
"sequence": 1,
"universalAdId": {
"_type": "UniversalAdId",
"creativeIdentifier": "8465",
"idRegistry": "Ad-ID",
"idValue": "unknown"
}
}
]
},
"errors": [
"https://example.com/error"
],
"extensions": [],
"id": "20001",
"impressions": [
{
"_type": "Impression",
"id": "Impression-ID",
"uri": "https://example.com/track/impression"
}
],
"pricing": {
"_type": "Pricing",
"currency": "USD",
"model": "cpm",
"value": 25
},
"sequence": 1,
"surveys": [],
"verifications": []
}
]
}
},
"ads": {
"_type": "SortedList",
"_value": []
},
"errors": [],
"version": "4.2"
}
Loading