Getting Started with Video for Prebid.js

If you’re new to header bidding and Prebid, your implementation of Prebid for video demand will likely go much smoother if you first read the following:

See Prebid.js Video Overview for a general description and high-level overview of working with video demand in Prebid.js.

Ad Ops

Ad Server Setup

Start by reading Ad Ops Getting Started. This will give you a general overview of setting up your price buckets and line items on your ad server.

One thing to keep in mind as you set up your line items is price granularity. Be sure to communicate your price granularity requirements to your developers, as they might need to define custom configuration settings, depending on your granularity.


If you already have a Prebid integration for banner, you must create a separate set of ad server line items to enable Prebid to monetize instream video.

If you’re using Google Ad Manager as your ad server: Once you understand the general setup requirements, follow the instructions for video-specific line item setup in Setting Up Prebid Video in Google Ad Manager.

If you’re using another ad server: Follow the instructions for your ad server to create line items for instream video content. The primary points to keep in mind as you set up your line items include:

  • Line items must target Prebid key-values.
  • The VAST creative URL must be in the format{hb_cache_id}, where {hb_cache_id} is the value passed to the ad server from Prebid.js.


If you already have a Prebid integration for banner, you don’t need to do anything differently for outstream video. Outstream units use the same creative and line item targeting setup as banner creatives. See the Step by Step Guide to Google Ad Manager Setup for instructions. (If you’re not using Google Ad Manager as your ad server, follow your ad server’s guidelines for setting up your line items.)

Prebid Server If you’ve decided to conduct your header bidding auctions server-side rather than on the client, you need to have a Prebid Server account or set up your own. See the Prebid Server Overview to begin your integration.


Download Prebid.js

Your first step to implementing header bidding for video is to download Prebid.js. Before downloading, select the adapters you want to include. (You can add more adapters later.)

  • Include at least one bid adapter that supports video. Find a list of eligible adapters here.
  • If Google Ad Manager is your ad server, you must include the Google Ad Manager Video module.
  • If you’ll be integrating with Prebid Server, be sure to include “Prebid Server” in the list of adapters.

How to integrate

Prebid Video Module

The Video Module is a new way of handling Video in Prebid.

To integrate Prebid with a video player, we recommend using the Video Module. The Video Module will allow Prebid.js to automatically:

  • render bids in your desired video player
  • mark used bids as won
  • trigger player and media events
  • fill the oRTB Video Impression and Content params in the bid request

For details on how to configure follow these instructions.

Integrating on your own

If you prefer to fully own the integration between Prebid and Video, you can follow these instructions.

Further Reading