HTL BID does not run the Prebid Video auction, but can help manage the following:
- Prebid Video IDs
- Add the Prebid Video module in the
pbjsconfiguration - Provide code to implement directly on the page to extract the Video Prebid IDs
How to configure Prebid Video
1) In HTL BID
a. Select the “Prebid Video” checkbox in Tech Config > Services
b. Add the Video Prebid IDs in a new dedicated Prebid ID Group called “outstream”, “VAST Video” or similar so it can be easy to identify. It should not be tied to any slots in the Ad Configuration.
In the Prebid ID Group (eg. “outstream”) add the AppNexus PlacementId=13232361 (for testing purposes only, it’s guaranteed to bid every time)
2) On the page and GAM
Use this sample source code to extract IDs from HTL BID and use them to run a video auction (requires section 1 be completed):
This is largely boilerplate code adapted from https://docs.prebid.org/examples/video/instream/videojs/pb-ve-videojs.html, with the biggest difference being this critical line of code:
videoAdUnit.bids = htlbid.config.prebidGroups.outstream;The sample code sends the request to GAM after running the auction. You can adjust the bidsBackHandler to instead do something else with the bids, such as rendering the video directly, without going through GAM.
To do that, you need to get the video from the Prebid Cache. When the video auction runs, each bid is associated with a UUID. That UUID goes into a “prebid cache” server. To fetch the actual video file, you have to make a request to the cache server, inserting the UUID of your bid into this URL, replacing %%UUID%% with the actual UUID: https://prebid.adnxs.com/pbc/v1/cache?uuid=%%UUID%%
This “fetch the creative from Prebid cache” step is only necessary if you want to avoid GAM for video. If you DO want to use GAM, then you’ll need GAM Video Line Items for Prebid, and everything Prebid cache related would be handled there instead.
With regard to setting up GAM line items, HTL should be able to set these up for you as long as the necessary GAM access is given (Administrator role). This access can be temporary while the Line Items are created.