To bring up the AdSense code on the template, you should've been there is JavaScript for AdSense. This code is actually support for various ad service providers. However, I will only give the tutor about Google AdSense.

This code must be in the tag head.

<script async='async' custom-element='amp-ad' src='https://cdn.ampproject.org/v0/amp-ad-0.1.js'/>

Kode untuk menampilkannya (contoh unit iklan ukuran 300x250)

<amp-ad width="300" height="250"
type="adsense"
data-ad-client="ca-pub-2005682797531342"
data-ad-slot="7046626912">
</amp-ad>

Layouts that support: fill, fixed, fixed-height, flex-item, nodisplay, responsive
For other sizes please adjust. When the ad unit responsive, please add the layouts.

You Might Also Like:

Disqus Comments

Hello, how may we help you? Just send us a message now to get assistance.

Facebook Messenger ×