Last active
June 8, 2019 10:54
-
-
Save isaumya/871cc2dccae160478058e4dca59722e1 to your computer and use it in GitHub Desktop.
Google AdSense Code Difference - AMP Page vs Normal Page
This file contains 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
################# 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