vastlint
VAST-2.0-linear-mediafiles

VAST-2.0-linear-mediafiles

<Linear> must contain <MediaFiles> with at least one <MediaFile>

ErrorRequired fieldsIAB VAST 2.0 §2.4.1VAST 2.0 and later (all versions)

Short answer

A <Linear> creative with no <MediaFiles> — or with an empty <MediaFiles> container — has nothing to play. At least one <MediaFile> element is required.

Why this matters in production

This rule is usually a delivery blocker. Many players, SDKs, and ad servers will discard the response or skip the affected creative once this condition is hit. Required-field failures usually stop validation early because the platform cannot determine the basic shape of the ad, the creative metadata, or the mandatory tracking payload. Affected scope: VAST 2.0 and later (all versions).

How to fix

Add <MediaFiles> containing at least one <MediaFile> element with a valid video URL inside <Linear>.

Invalid

<Linear>
  <Duration>00:00:30</Duration>
  <MediaFiles>
  </MediaFiles>
</Linear>

Valid

<Linear>
  <Duration>00:00:30</Duration>
  <MediaFiles>
    <MediaFile delivery="progressive" type="video/mp4" width="1280" height="720">
      <![CDATA[https://cdn.example.com/ad.mp4]]>
    </MediaFile>
  </MediaFiles>
</Linear>
Check your VAST tag for VAST-2.0-linear-mediafiles and other issues instantly.Validate a tag →