How to Add Adsense Code in AMP Template
1. Copy the code below and place it before the tag </head>
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js">
2. Then copy the code below and please be placed in areas where your ad will be displayed on your own blog
Example for AdSense 250x300
<amp-ad
data-ad-client="ca-pub-xxssssxxxxxxx"
data-ad-slot="1234567"
height="250"
type="adsense"
width="300">
</amp-ad>
Example for responsive AdSense
<amp-ad
data-ad-client="ca-pub-xxssssxxxxxxx"
data-ad-slot="1234567" layout= "responsive"
height="250"
type="adsense"
width="300">
</amp-ad>
INFORMATION :
- Data-ad-client "ca-pub-xxssssxxxxxxx" please replace with your own publisher code
- Data-ad-slot "1234567" please replace with your ad slot data
- Type let it remain adsense
- Height 250 is a high measure of ads will show (simply adjusted)
- Width 300 is a width size of ads that will appear (please adjusted)

0 Response to "How to Add Adsense Code in AMP Template"
Posting Komentar