I've seen some websites use a new style of ads from Adsense, they take the entire page and make you wait X seconds before being able to skip it.

I thought it's the page-level ads of Adsense, however the page-level ads are only for mobile, while I get these ads on my laptop. They look like this:

ads Does anybody have any ideas what ads these are and how I can get them too?

  • Can you share the webpage that shows that kind of ads?
    – marcanuy
    Commented Jun 23, 2016 at 19:36
  • @marcanuy This website Displays this ad once, after losing the game about 3 times. Commented Jun 23, 2016 at 22:37

1 Answer 1


I was curious about them too, so digging a bit into that website, the kind of ads they are using are possible by Google IMA SDK for HTML5, it

allows developers to request and track VAST ads in a HTML5 video environment.

Here is the relevant javascript code of the website:

    3<=play_count &&
    !is_mobile&&adsController &&

So it shows the advertisements after the player loses 3 times. They are using the sdk library:

<script type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/outstream.js"></script>

and using an AdsController to display them:

<script type="text/javascript">
 var ocho = document.getElementById('ocho');
 var adsController = null;
 try {
  adsController = new google.outstream.AdsController(ocho, oalo, oadu);
 } catch (e) {

 ocho.style.display = 'none';
 ocho.style.visibility = '';

That makes it possible to use overlay ads in desktop versions of a website using some html5 elements.

You may want to associate your in-page HTML and Flash ad slots with video or overlay ad slots. This relationship between associated ad slots is referred to as the master/companion relationship. In addition to being used for requesting video and overlay master ads, the IMA SDK can be used to display companion HTML and Flash-in-Flash ads. These ads are displayed within an HTML environment, alongside other Flash content, or within a Flash website.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.