quickly undoing their AMP efforts<\/a> in a bid to get back their traffic and performance metrics.<\/p>\nHowever, if you\u2019re willing to jump on the AMP bandwagon and still want your AdSense to appear, you need to use an AMP-compliant version of your AdSense ads.<\/p>\n
How to Make AdSense Ads AMP-Compliant<\/h2>\n
If you\u2019re using any WordPress plugin that helps you insert AdSense ad code into your site, this guide might become easier for you to follow.<\/p>\n
The best way to implement AMP-supported AdSense ads on your site is to add tag as recommended in Google AMP Project.<\/p>\n
Here\u2019s an example of the AMP Version of an AdSense Code<\/p>\n
<\/p>\n
Technically, you needn\u2019t create separate ads for your AMP-compliant pages unless you want to really track the performance of those Ads specifically.<\/p>\n
I personally recommend the following approach:<\/p>\n
Step #1:<\/strong> Go to the AdSense plugin you\u2019ve installed on your site. Click to modify the Ad Code.<\/p>\nStep #2:<\/strong> Create an AMP version of the existing Ad Code and insert it below the standard AdSense code.<\/p>\nThis basically means both versions of your AdSense code will work based on whether you\u2019re viewing it on a Desktop Computer or Mobile Device.<\/p>\n
Convert Your AdSense Code to Its AMP Version<\/h2>\n
Here\u2019s what a standard AdSense code looks like. As you can see, I\u2019ve created a responsive ad format. Therefore, the data-ad-format is \u201cfluid\u201d. I\u2019d also recommend the same for your site unless you have found another way to make your ad behave responsively on your site.<\/p>\n
Also, the data-ad-layout is \u201cin-article\u201d which essentially mean this ad is designed to respond well within an individual post.<\/p>\n
The next two lines are essentially number related to your AdSense account. I\u2019ve inserted dummy numbers in the ad-client and ad-slot areas.<\/p>\n