VAST 4.2: Inline Linear Ad Response
A complete VAST 4.2 inline response for a linear pre-roll: two progressive MP4 media files at different bitrates, quartile tracking, an impression beacon and a click-through. Every URL points at the reserved example.invalid domain, so nothing can ever be fetched and no real ad server is contacted. For testing VAST parsing and player integration without a live ad stack.
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="4.2" xmlns="http://www.iab.com/VAST">
<Ad id="novus-sample-inline">
<InLine>
<AdSystem version="1.0">Novus Examples Sample</AdSystem>
<AdTitle>Fictional 15-second sample spot</AdTitle>
<Impression id="imp-1"><![CDATA[https://example.invalid/impression]]></Impression>
<Creatives>
<Creative id="creative-1" sequence="1">
<Linear>
<Duration>00:00:15</Duration>
<TrackingEvents>
<Tracking event="start"><![CDATA[https://example.invalid/start]]></Tracking>
<Tracking event="firstQuartile"><![CDATA[https://example.invalid/q1]]></Tracking>
<Tracking event="midpoint"><![CDATA[https://example.invalid/mid]]></Tracking>
<Tracking event="thirdQuartile"><![CDATA[https://example.invalid/q3]]></Tracking>
<Tracking event="complete"><![CDATA[https://example.invalid/complete]]></Tracking>
</TrackingEvents>
<VideoClicks>
<ClickThrough id="ct-1"><![CDATA[https://example.invalid/click]]></ClickThrough>
</VideoClicks>
<MediaFiles>
<MediaFile id="mf-1" delivery="progressive" type="video/mp4" width="640" height="360"
bitrate="700" scalable="true" maintainAspectRatio="true">
<![CDATA[https://example.invalid/spot-360p.mp4]]>
</MediaFile>
<MediaFile id="mf-2" delivery="progressive" type="video/mp4" width="1280" height="720"
bitrate="1400" scalable="true" maintainAspectRatio="true">
<![CDATA[https://example.invalid/spot-720p.mp4]]>
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
Specifications
- Standard
- VAST 4.2
- Ad Type
- InLine linear
- Duration
- 00:00:15
- Media Files
- 2
- Tracking Events
- 5
- Urls
- example.invalid: never resolvable
- Alt Text
- A complete VAST 4.2 inline response for a linear pre-roll: two progressive MP4 media files at different bitrates, quartile tracking, an impression beacon and a click-through
- Alt Text Source
- description
Testing contract
Expected to pass- Scenario
- Parse the document as VAST and resolve the creative and tracking URLs it declares.
- Expected result
- A VAST 4.2 InLine linear ad of duration 00:00:15 with 2 MediaFiles and 5 tracking events. Every URL is under `example.invalid`, a reserved TLD that can never resolve, so a client that fires the beacons produces DNS failures rather than real requests - which is what makes this safe to run in a test suite.
What is a .xml file?
XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.
How to use this file
Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.
How to use this file for testing
“VAST 4.2: Inline Linear Ad Response” is a deterministic Testaroo fixture for Ad insertion, Streaming manifests, Video QA. VAST ad responses and SCTE-35 splice descriptors covering linear break signalling, wrappers, and companion creatives, for testing ad-decision integration and manifest-manipulation logic without calling a real ad server.
Documented properties for this file: 00:00:15. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.
Media fixtures are short and synthetic by design. Prefer waveform or transcript ground truth in the same group when measuring ASR, trim, upscale, or sync tools; do not assume broadcast-quality masters.
Code examples
import xml.etree.ElementTree as ET
tree = ET.parse("vast-inline.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])Generated by generation/video_timedtext.py. Free for any use, no attribution required, license.
Related files
- m4sDASH VOD: Init Segment (init-stream0.m4s)A DASH initialisation segment carrying codec configuration for one representation. Named by the manifest's $RepresentationID$ template, so this file also exercises whether a client resolves template variables correctly rather than pattern-matching filenames.

- m4sDASH VOD: Init Segment (init-stream1.m4s)A DASH initialisation segment carrying codec configuration for one representation. Named by the manifest's $RepresentationID$ template, so this file also exercises whether a client resolves template variables correctly rather than pattern-matching filenames.

- m4sDASH VOD: Init Segment (init-stream2.m4s)A DASH initialisation segment carrying codec configuration for one representation. Named by the manifest's $RepresentationID$ template, so this file also exercises whether a client resolves template variables correctly rather than pattern-matching filenames.

- mpdDASH VOD: Manifest (Playable Package)A complete, playable MPEG-DASH manifest for the same 320x180 at 300 kbps, 480x270 at 700 kbps, 640x360 at 1400 kbps ladder as the HLS package, produced from the same encoder run, so the two can be compared directly as packaging rather than as content. Every segment it references exists in this group. Served inline as application/dash+xml with permissive CORS, so dash.js can load it cross-origin.

- m4sDASH VOD: Media Segment (chunk-stream0-00001.m4s)A one-second DASH media segment, addressed by the manifest's $Number$ template. The same underlying CMAF structure as the HLS segments in the sibling package, which is the whole point of CMAF, and something a fixture set should let you verify rather than take on trust.

- m4sDASH VOD: Media Segment (chunk-stream0-00002.m4s)A one-second DASH media segment, addressed by the manifest's $Number$ template. The same underlying CMAF structure as the HLS segments in the sibling package, which is the whole point of CMAF, and something a fixture set should let you verify rather than take on trust.
