I have 3 Google adsense scripts with 300x250 - 160x600 - 728x90
How do I get one of these scripts to be loaded each time the page is loaded?
I would like each Reload of the page to be shown 1 script.
Example:
I have the one that is used for iframe, but in the case of adsense I need to use the complete script.
<script language="JavaScript">
var quotes=new Array()
quotes[0]='<iframe frameborder="0" height="250" name="videoplayer"
scrolling="no" src="http://"style="border: 0px #FFFFFF none;" width="300">
</iframe>'
quotes[1]='<iframe frameborder="0" height="250" name="videoplayer"
scrolling="no" src="http://"style="border: 0px #FFFFFF none;" width="300"></iframe>'
quotes[2]='<iframe frameborder="0" height="250" name="videoplayer"
scrolling="no" src="http://"style="border: 0px #FFFFFF none;" width="300"></iframe>'
var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])
</script>
Blocks I want to use in Randon mo
<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script>
<!-- lateral -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-2068602933738629"
data-ad-slot="8173528505"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script> <ins
class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-2068602933738629"
data-ad-slot="2353050305"></ins> <script>(adsbygoogle =
window.adsbygoogle || []).push({});</script>
<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script>
<!-- celular -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-2068602933738629"
data-ad-slot="6337832563"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>