Press enter to see results or esc to cancel.

Showing and hiding ads with delay

Showing ads

Sometimes you may not want to show the ad immediately but after some delay. This can easily be achieved with timed rotation code. This is an example to delay ad for 20 s:

[ADINSERTER ROTATE time="20" share="100"]
[ADINSERTER ROTATE]
AD CODE

This is a simple timed rotation code with two options. The first option has share 100% so it always triggers first and has time set to 20 s. The code is empty so it doesn’t insert (or show) anything.

The second option is inserted (or shown) after the time of the first option (20 s) and it stops there as it has no time set.

PRO Ad Inserter Pro has a dedicated option to delay showing the ad (delay before the block is inserted). You can also delay showing ads until the user interracts with the website (mouse move, key press, screen touch).

Hiding ads

Similar approach with timed rotation can be used to hide ad after some time:

[ADINSERTER ROTATE time="20" share="100"]
AD CODE
[ADINSERTER ROTATE]

The first option has share 100% so it always triggers first and has time set to 20 s.

The second option is empty so it doesn’t insert (or show) anything. It is used after the time of the first option (20 s) and it stops there as it has no time set.

Showing and hiding ads

You can also set delay to show ad and then hide it after some time:

[ADINSERTER ROTATE time="10" share="100"]
[ADINSERTER ROTATE time="20"]
AD CODE
[ADINSERTER ROTATE]

The first option has no code, share is set to 100% so it always triggers first and has time set to 10 s.

The second option is the actual ad that is shown for 20 s.

The third option is empty so it doesn’t insert (or show) anything. It is used after the second option ends and it stops there as it has no time set.

The examples above use timed ad rotation to delay showing ads. When your ad contains Javascript code (<script> tags) for sticky ads, you should set Dynamic blocks to Client-side insert, otherwise the code will be executed as soon as the page is loaded and sticky ad may be displayed immediately (the sticky ad HTML code is outside of the hidden rotation option and therefore visible).