Outstream Units
Code examples
Outstream code examples
The pages in this section show some of the most used outstream unit implementations. Through the API you can do much more — from running custom code once the unit loads to loading custom ad tags.
Customize certain advertising aspects — frequency caps, ad tag parameters, custom ads and bidding timeouts.
Execute custom JavaScript code on ad ended — running your own code when the ad finishes.
Bust out outstream of a friendly iframe — showing a unit placed inside a friendly iframe on the parent page.
Multiple outstream units on page — trying an in-slide unit first and falling back to an in-content unit.
Set offset for sticky unit — keeping a sticky unit clear of fixed elements on your page.