Skip to content

Instantly share code, notes, and snippets.

@nucklearproject
Created December 7, 2012 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nucklearproject/4233314 to your computer and use it in GitHub Desktop.
Save nucklearproject/4233314 to your computer and use it in GitHub Desktop.
Responsive adsense snipet
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3658299045266116";
/* top */
if ($(window).width()<728 ){
google_ad_slot = "4414183254";
google_ad_width = 320;
google_ad_height = 50;
}else{
google_ad_slot = "1020377061";
google_ad_width = 728;
google_ad_height = 90;
}
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
@via: http://ryanunderdown.com/ppc/responsive-ads-with-adsense.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment