Skip to content

Instantly share code, notes, and snippets.

@anandkumar
Created February 21, 2013 12:12
Show Gist options
  • Save anandkumar/5004338 to your computer and use it in GitHub Desktop.
Save anandkumar/5004338 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
google_ad_client = "ca-publisher-id",
if (window. innerWidth> = 800) {
google_ad_slot = " ad-unit-1 ";
google_ad_width = 728;
google_ad_height = 90;
} Else if (window.innerWidth <400) {
google_ad_slot = " ad-unit-2 ";
google_ad_width = 300;
google_ad_height = 250;
Else {}
google_ad_slot = " ad-unit-3 ";
google_ad_width = 468;
google_ad_height = 60;
}
</ 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