PopAds backup code

If no targeted ads are available for your page, you can set up backup ads to display a HTML page. This way, you can make sure that your advertising space is always being used effectively with PopAds.

PopAds code generator

<!– PopAds.net Popunder Code for your_site.com –>
<script type="text/javascript">
var _pop = _pop || [];
_pop.push(['siteId', $your_siteId]);
_pop.push(['minBid', 0.000000]);
_pop.push(['popundersPerIP', 0]);
_pop.push(['delayBetween', 0]);
_pop.push(['default', false]);
_pop.push(['defaultPerDay', 0]);
_pop.push(['topmostLayer', false]);
(function() {
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
var s = document.getElementsByTagName('script')[0];
pa.src = '//c1.popads.net/pop.js';
pa.onerror = function() {
var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
sa.src = '//c2.popads.net/pop.js';
s.parentNode.insertBefore(sa, s);
s.parentNode.insertBefore(pa, s);
<!– PopAds.net Popunder Code End –>

Setup your backup code with PopAds

To replace line 8:
_pop.push(['default', false]);

_pop.push(['default', 'http://www.your_weblink.com']);