vastlint
VAST-2.0-mediafile-dimensions

VAST-2.0-mediafile-dimensions

<MediaFile> must have width and height attributes

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

Short answer

Width and height are required on <MediaFile> so players can select the most appropriate rendition for the current viewport without downloading every candidate.

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 width and height attributes to <MediaFile> with the pixel dimensions of the video, e.g. width="1280" height="720".

Check your VAST tag for VAST-2.0-mediafile-dimensions and other issues instantly.Validate a tag →