How To Place Adsense Ads In Middle of The Post in Blogger-AMP Template Automatically
But recently, there is a new feature of AMP project where we can enable to install adsense code automatically. Is it true?
The latest Js from AMP project is named with amp-auto-ads that support with AdSense. So amp-auto-ads will automatically put adsense ads in your article.
How to install it? It's so easy to install..
1. All you need to do for the first time is to put the amp-auto-ads code. Put it before the code </ head>. Copy the following code in your blogger panel.
<script async='async' custom-element='amp-auto-ads' src='https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js'></script>
2. The next step, put the HTML code of Adsense amp-auto-ads just below <body>. keep in mind, you should install it right after the opening code <body>. Here's the code:
<amp-auto-ads data-ad-client='ca-pub-4026188032600094' type='adsense'> </amp-auto-ads>
Note: Replace ad client with your AdSense publisher code.
3. SAVE your template.
Will Only Appear on SmartphoneBased on my experience, Adsense Ads you will only appear if you access your blog via smartphone only..
Ads Only Show 1 Per ArticleAdsense ads that are placed automatically by amp-auto-ads, will not show if you have previously placed adsense ads code manually when writing articles.
That's my article this time about How to put adsense ads in the middle of the article automatically. Hopefully useful :)