diff --git a/test/fixtures/strict/iab/vast-2/Inline_Non-Linear_VAST20.xml b/test/fixtures/strict/iab/vast-2/Inline_Non-Linear_VAST20.xml new file mode 100644 index 0000000..52cba91 --- /dev/null +++ b/test/fixtures/strict/iab/vast-2/Inline_Non-Linear_VAST20.xml @@ -0,0 +1,27 @@ + + + + 2.0 + 5750100 + myErrorUrl.com + http://example.com/trackingurl/impression + + + + + + + + + + + + + + + + + + diff --git a/test/fixtures/strict/iab/vast-4/Icon-Click_fallbacks-test.xml b/test/fixtures/strict/iab/vast-4/Icon-Click_fallbacks-test.xml new file mode 100644 index 0000000..0059261 --- /dev/null +++ b/test/fixtures/strict/iab/vast-4/Icon-Click_fallbacks-test.xml @@ -0,0 +1,59 @@ + + + + iabtechlab + + + + + + a532d16d-4d7f-4440-bd29-2ec0e693fc80 + iabtechlab video ad + + + + + + + + + + The live click interaction + + + + + + + + + + + + + + + 00:00:16 + + + + + + + + + + + + + + + + + + 8465 + + + + + diff --git a/test/fixtures/strict/iab/vast-4/Inline_Non-Linear_Tag-test.xml b/test/fixtures/strict/iab/vast-4/Inline_Non-Linear_Tag-test.xml index 4911050..d25df19 100755 --- a/test/fixtures/strict/iab/vast-4/Inline_Non-Linear_Tag-test.xml +++ b/test/fixtures/strict/iab/vast-4/Inline_Non-Linear_Tag-test.xml @@ -1,9 +1,9 @@ - - + + - iabtechlab + iabtechlab - + @@ -13,32 +13,31 @@ - + - + a532d16d-4d7f-4440-bd29-2ec0e693fc80 - - 8465 - + - + - + - + + 8465 diff --git a/test/integration/expected/strict/iab/vast-2/Inline_Non-Linear_VAST20.json b/test/integration/expected/strict/iab/vast-2/Inline_Non-Linear_VAST20.json new file mode 100644 index 0000000..059d1f3 --- /dev/null +++ b/test/integration/expected/strict/iab/vast-2/Inline_Non-Linear_VAST20.json @@ -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" +} \ No newline at end of file diff --git a/test/integration/expected/strict/iab/vast-4/Icon-Click_fallbacks-test.json b/test/integration/expected/strict/iab/vast-4/Icon-Click_fallbacks-test.json new file mode 100644 index 0000000..81efc6d --- /dev/null +++ b/test/integration/expected/strict/iab/vast-4/Icon-Click_fallbacks-test.json @@ -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" +} \ No newline at end of file diff --git a/test/integration/expected/strict/iab/vast-4/Inline_Non-Linear_Tag-test.json b/test/integration/expected/strict/iab/vast-4/Inline_Non-Linear_Tag-test.json index 0021466..956d0c6 100755 --- a/test/integration/expected/strict/iab/vast-4/Inline_Non-Linear_Tag-test.json +++ b/test/integration/expected/strict/iab/vast-4/Inline_Non-Linear_Tag-test.json @@ -10,12 +10,11 @@ "adSystem": { "_type": "AdSystem", "name": "iabtechlab", - "version": "4.0" + "version": "1" }, "adTitle": "VAST 4.0 Pilot - Scenario 5", "categories": [ ], - "conditionalAd": "false", "creatives": { "_type": "SortedList", "_value": [ @@ -32,19 +31,21 @@ "_type": "NonLinear", "clickThrough": { "_type": "Click", - "uri": "http://iabtechlab.com" + "uri": "https://iabtechlab.com" }, "clickTrackings": [ { "_type": "Click", - "uri": "http://example.com/trackingurl/clickTracking" + "uri": "https://example.com/tracking/clickTracking" } ], + "height" : 350, "resource": { "_type": "StaticResource", "creativeType": "image/png", - "uri": "http://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg" - } + "uri": "https://mms.businesswire.com/media/20150623005446/en/473787/21/iab_tech_lab.jpg" + }, + "width": 350 } ] }, @@ -53,14 +54,14 @@ "_type": "UniversalAdId", "creativeIdentifier": "8465", "idRegistry": "Ad-ID", - "idValue": "8465" + "idValue" : "unknown" } } ] }, "description": "VAST 4.0 sample tag for Non Linear ad (i.e Overlay ad). Change the StaticResources to have a tag with your own content. Change NonLinear tag's parameters accordingly to view desired results.", "errors": [ - "http://example.com/error" + "https://example.com/error" ], "extensions": [ { @@ -74,7 +75,7 @@ { "_type": "Impression", "id": "Impression-ID", - "uri": "http://example.com/track/impression" + "uri": "https://example.com/track/impression" } ], "pricing": { @@ -99,5 +100,5 @@ }, "errors": [ ], - "version": "4.0" + "version": "4.2" } \ No newline at end of file