Instream Video Ads
Instream video ads require your own video player and content. Advlume runs a Prebid VAST auction and returns a tag URL for your player to use as a pre-roll, mid-roll, or post-roll ad source.
Instream video ads play inside an existing video player on your site — as pre-roll, mid-roll, or post-roll placements. They require you to have your own video content and a video player that supports VAST ad tags.
How instream works on Advlume
For instream placements, the Advlume wrapper runs a Prebid video auction and generates a VAST ad tag URL. You pass this URL to your video player as the ad source before your content video plays. The player fetches the VAST response, downloads the winning creative, and plays it inline.
The same video module (hb-video.js) handles both instream and outstream, but instream requires you to integrate the VAST tag with your own player rather than using the Advlume-managed rmp-vast player.
Creative specifications
| Parameter | Value |
|---|---|
| Supported sizes | 640×480, 640×360, 320×180, 300×250 |
| MIME types | video/mp4, video/webm, video/ogg |
| Max duration | 30 seconds |
| Skippable | Yes — skip button after 5 seconds |
| Playback method | Auto-play with sound on (pre-roll context) |
| VAST protocols | 1.0–4.2 (protocols 1–6) |
| VPAID API | VPAID 2.0 (api: [2]) |
Adding an instream slot
<div
data-advlume-site="YOUR-SITE-UUID"
data-advlume-slot="video-preroll"
data-advlume-format="instream"
></div>
The wrapper runs the auction and stores the winning VAST URL. You retrieve it and pass it to your player using your player's ad integration API. The exact method depends on your player:
- JW Player: Use the
advertisingconfiguration block with the VAST tag as thetagproperty. - Video.js with videojs-vast-vpaid: Pass the tag to the
adTagUrloption. - Flowplayer: Use the
adsplugin with the VAST tag URL.
Contact your account manager for integration assistance if you are using a player not listed here. See also Adding Video Ad Tags for the full code walkthrough.
Requirements
- You must have genuine video content on your pages. Instream ads on pages without any real video content violate demand partner policies and will result in low fill and potential suspension.
- Your video player must support VAST 2.0 or higher.
- Audio must be enabled for the ad — instream pre-roll is expected to play with sound.
Further reading
- Outstream Video Ads — video ads for pages without an existing player
- Adding Video Ad Tags — full setup walkthrough
Last updated 2 months ago