These types conform to the IAB VAST 4.x specification. For more information, see the official VAST documentation.
VASTResponse
Root VAST response structure returned by the parser.VAST version from the XML (e.g., “4.0”, “4.1”, “4.2”).
Error tracking URLs from the VAST document.
Ad
Represents a single ad element. Can be either inline or wrapper.Unique identifier for the ad.
Playback sequence for ad pods. Lower numbers play first.
Title of the advertisement.
Impression tracking URLs. See Impression.
Error tracking URLs specific to this ad.
AdSystem
Identifies the ad server that returned the ad.Name of the ad server system.
Version of the ad server.
InLine
Inline ad content with direct creative elements.Title of the advertisement.
Description of the ad content.
Name of the advertiser.
URL to an optional survey.
Creative elements for this inline ad.
Wrapper
Wrapper ad that redirects to another VAST tag.URL to the wrapped VAST tag.
Whether to follow additional wrapper redirects.
Whether multiple ads are allowed in the wrapped response.
Whether to use fallback if wrapped VAST returns no ads.
Impression
Impression tracking pixel URL.Optional identifier for the impression.
Impression tracking URL to fire when ad is displayed.
Creative
Creative element containing linear video, non-linear overlays, or companion ads.Unique identifier for the creative.
Playback sequence for multiple creatives.
Reference to the parent ad ID.
Non-linear overlay ads. See NonLinearAd.
Companion banner ads. See CompanionAd.
Linear
Linear video creative with media files and tracking.Total duration of the video in seconds.
Time in seconds after which skip button becomes available.
Tracking URLs for various playback events. See TrackingEvent.
Click tracking and click-through URLs. See VideoClicks.
Custom parameters to pass to the creative.
MediaFile
Video file reference with codec and quality information.Optional identifier for the media file.
URL to the video file.
Delivery method:
progressive (HTTP download) or streaming (HLS/DASH).MIME type with optional codec (e.g.,
video/mp4, video/mp4; codecs="avc1.42E01E").Video width in pixels.
Video height in pixels.
Target bitrate in kbps.
Minimum bitrate for adaptive streaming.
Maximum bitrate for adaptive streaming.
Whether the media file can be scaled.
Whether to maintain aspect ratio when scaling.
Video codec identifier.
API framework required for playback (e.g., “VPAID”).
TrackingEvent
Tracking URL for specific playback events.Type of event to track. See TrackingEventType.
Tracking pixel URL to fire when event occurs.
Time offset in seconds for progress events.
TrackingEventType
Supported tracking event types per VAST 4.x specification.VideoClicks
Click tracking and click-through URL configuration.Primary click-through destination. See ClickThrough.
Click tracking pixels. See ClickTracking.
Custom click tracking URLs. See CustomClick.
ClickThrough
Primary click-through URL for the ad.Optional identifier.
Landing page URL when user clicks the ad.
ClickTracking
Click tracking pixel URL.Optional identifier.
Tracking URL to fire when ad is clicked.
CustomClick
Custom click tracking URL.Optional identifier.
Custom tracking URL.
NonLinearAd
Non-linear overlay ad (banner over video).Optional identifier.
Width in pixels.
Height in pixels.
Minimum suggested display duration in seconds.
URL to static image resource.
URL to iframe resource.
HTML content as string.
Click-through URL for the overlay.
Tracking events for the overlay.
CompanionAd
Companion banner ad displayed alongside video.Optional identifier.
Width in pixels.
Height in pixels.
URL to static image resource.
URL to iframe resource.
HTML content as string.
Click-through URL for the companion ad.
Tracking events for the companion ad.
Icon
Icon overlay (e.g., AdChoices icon).Industry initiative program (e.g., “AdChoices”).
Width in pixels.
Height in pixels.
Horizontal position (pixel value or “left”/“right”).
Vertical position (pixel value or “top”/“bottom”).
Display duration in seconds.
Time offset in seconds when icon should appear.
URL to static image resource.
URL to iframe resource.
HTML content as string.
Click handling for the icon. See IconClicks.
IconClicks
Click handling for icon overlays.Click-through URL for the icon.
Click tracking URLs for the icon.
Pricing
Pricing model information.Pricing model:
cpm- Cost per thousand impressionscpc- Cost per clickcpe- Cost per engagementcpv- Cost per view
Currency code (e.g., “USD”, “EUR”).
Price value in the specified currency.
Category
Content category classification.Authority defining the category taxonomy.
Category value.
VASTErrorCode
Standard VAST error codes per IAB specification.Failed to parse VAST XML.
VAST XML does not conform to schema.
VAST version is not supported by the player.
General wrapper ad error.
Wrapper ad request timed out.
Maximum wrapper depth exceeded.
No VAST response received from wrapper.
General linear creative error.
Media file not found or failed to load.
Media file request timed out.
No supported media files available.
General companion ad error.
Undefined error occurred.
