Google AdSense comes with new features for users, you can read more on the official website.
These settings are more easy to follow by users and has two steps:
Step 1: Copy and paste the script in between the tags of your site
Place this code once in between the head tags of your AMP site’s HTML. This script loads the relevant amp-auto-ads libraries.
1 2 3 | <script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"> </script> |
Step 2: Copy and paste the AMP Auto ad code right after the tag on your pages
Copy and paste this code immediately after the tag of the pages you want ads to appear.
This will comes with your code for your websites
1 2 3 | <amp-auto-ads type="adsense" data-ad-client="xx-xxxx-xxxx"> </amp-auto-ads> |