Skip to content

Instantly share code, notes, and snippets.

@underdown
Created May 24, 2013 18:09
Show Gist options
  • Select an option

  • Save underdown/5645409 to your computer and use it in GitHub Desktop.

Select an option

Save underdown/5645409 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
google_ad_client = "ca-publisher-id";
width = document.documentElement.clientWidth;
google_ad_slot = "1234567890";
google_ad_width = 320;
google_ad_height = 50;
if (width > 500) {
google_ad_slot = "3456789012";
google_ad_width = 468;
google_ad_height = 60;
}
if (width > 800) {
google_ad_slot = "2345678901";
google_ad_width = 728;
google_ad_height = 90;
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment