Created
December 7, 2012 13:35
-
-
Save nucklearproject/4233314 to your computer and use it in GitHub Desktop.
Responsive adsense snipet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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