Skip to content

Instantly share code, notes, and snippets.

@anandkumar
Last active December 20, 2015 18:18
Show Gist options
  • Save anandkumar/6174550 to your computer and use it in GitHub Desktop.
Save anandkumar/6174550 to your computer and use it in GitHub Desktop.
official responsive Adsense ad unit format - Async
<style>
.adsense-ad-unit-1 { width: 320px; height: 50px; }
@media(min-width: 500px) { .adsense-ad-unit-1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .adsense-ad-unit-1 { width: 728px; height: 90px; } }
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Adsense Ad Unit 1 -->
<ins class="adsense-ad-unit-1"
style="display:inline-block"
data-ad-client="ca-pub-0000000000000"
data-ad-slot="xxxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment