vastlint
VAST-4.0-wrapper-root-error

VAST-4.0-wrapper-root-error

<VAST> root contains both <Ad> and <Error> elements (invalid per VAST 4.0)

WarningRequired fieldsIAB VAST 4.0 §2.1VAST 4.0, 4.1, 4.2, and 4.3

Short answer

In VAST 4.0 and later, the <VAST> root must contain either <Ad> elements **or** a single <Error> element — not both. Mixing them violates the schema choice and may confuse players.

Why this matters in production

This rule is a strong risk signal. Tags with this issue often still parse, but they become brittle across SDKs, SSAI resolvers, and CTV environments. 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 4.0, 4.1, 4.2, and 4.3.

How to fix

Remove either all <Ad> elements or the <Error> element so only one type exists under <VAST>.

Check your VAST tag for VAST-4.0-wrapper-root-error and other issues instantly.Validate a tag →