Web Player

Adding prebid for banner fallback

TargetVideo banner fallback supports display banner prebidding, so you can apply Prebid to your banner fallbacks and further improve your ad performance.

Start from the display banner example in Basic Prebid.js Example on prebid.org. Its ad unit is displayed with this code, which you will recognise from the tag you get from Google Ad Manager:

<div id='div-1'>
    <script type='text/javascript'>
        googletag.cmd.push(function() {
            googletag.display('div-1');
        });
    </script>
</div>

❗ Important

Make sure the div ID matches your ad unit code — in this case div-1.

Note: the player renders banner fallback code inside its own iframe, so that code can’t use the googletag or pbjs set up on your page. The code you enter as the banner fallback has to load gpt.js and Prebid.js, define the ad unit and run the auction itself — as the full prebid.org example does — not just the display call above.

Adding prebid for banner fallback · TargetVideo Developer Docs