Skip to content
Novus Examples
xml1.8 KB

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.

Preview — first 38 linesxml
<?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

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 Novus Examples 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.