Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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