Eu possuo 3 scripts do Google adsense com 300 x 250 - 160 x 600 - 728 x 90
Como faço para cada vez que a pagina seja carregada 1 desses script seja mostrado?
Gostaria que cada Reload da pagina seja mostrado 1 script.
Exemplo:
Eu possuo esse que é usado para iframe, mas no caso do adsense eu preciso que seja usado o script completo.
<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>
Blocos que quero usar no mo Randon
<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>