Skip to content

Instantly share code, notes, and snippets.

@isaumya
Last active June 8, 2019 10:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save isaumya/871cc2dccae160478058e4dca59722e1 to your computer and use it in GitHub Desktop.
Google AdSense Code Difference - AMP Page vs Normal Page
################# Normal Google AdSense Code #################
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle center top-ad"
style="display:block"
data-ad-client="ca-pub-1234667890"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
############## Google AdSense Code for AMP Pages ##############
<amp-ad width=300 height=250
type="adsense"
data-ad-client="ca-pub-1234567890"
data-ad-slot="1234567890"></amp-ad>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment