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.
<script async custom-element="amp-auto-ads"
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