There is no problem not worth solving, and no technology not worth learning!

Set up Google AdSense auto ads on WordPress 6 AMP sites

点击应用,打开:https://www.shuijingwanwq.com/amp/ ,Google AdSense 自动广告已经成功显示

1. Reference:https://www.shuijingwanwq.com/2023/03/16/7483/. AMP website based plugin: Accelerated mobile pages

2. Open:https://www.shuijingwanwq.com/amp/, there is no Google AdSense automatic ad set on the page. Reference:https://support.google.com/adsense/answer/9261309. Set up automatic ads on your AMP website

3. Use the <link> tag to pair non-AMP content with AMP content, so that your web page can be easily discovered. This preparation has been implemented by the plugin. on non-AMP web pageshttps://www.shuijingwanwq.comAdd <link> to the <head> tag: <link rel=”AmpHtml” href=”https://www.shuijingwanwq.com/amp/” /> . As shown in Figure 1

使用 &lt;link&gt; 标记将非 AMP 内容与 AMP 内容配对,从而使您的网页可被轻松发现 。此项准备工作已经被插件实现。在非 AMP 网页 https://www.shuijingwanwq.com 的 &lt;head&gt; 中添加 &lt;link&gt; 标记:&lt;link rel=&quot;amphtml&quot; href=&quot;https://www.shuijingwanwq.com/amp/&quot; /&gt;
Figure 1

4. This preparation has been implemented by the plugin. on the AMP web pagehttps://www.shuijingwanwq.com/amp/Add <link> to the <head> tag: <link rel=”canonical” href=”https://www.shuijingwanwq.com/”> . As shown in Figure 2

此项准备工作已经被插件实现。在 AMP 网页 https://www.shuijingwanwq.com/amp/ 的 &lt;head&gt; 中添加 &lt;link&gt; 标记:&lt;link rel=&quot;canonical&quot; href=&quot;https://www.shuijingwanwq.com/&quot;&gt;
Figure 2

5. On the “AMP Automatic Ads” page, turn on AMP Auto Advertising. as shown in Figure 3

在“AMP 自动广告”页面上,开启 AMP 自动广告
Figure 3

6. AMP – Settings – Advertisement in the background of WordPress 6, close the Ad Revenue Optimization. as shown in Figure 4

在 WordPress 6 后台的 AMP - Settings - Advertisement ,关闭 Ad Revenue Optimization
Figure 4

7. Click Get the AMP code and place this code on the AMP version of the website. AMP – Settings – Advance Settings in the background of WordPress 6, respectively in Enter HTML in Head and Enter HTML in Body (Beginning of Body Tag) paste code in. as shown in Figure 5

点击获取 AMP 代码,将此代码放置在 AMP 版本的网站上。在 WordPress 6 后台的 AMP - Settings - Advance Settings,分别在 Enter HTML in Head 与 Enter HTML in Body (beginning of body tag) 中粘贴代码
Figure 5

8. Viewhttps://www.shuijingwanwq.com/amp/source code, confirm that the code has been added successfully. as shown in Figure 6

查看 https://www.shuijingwanwq.com/amp/ 的源代码,确认代码已经添加成功
Figure 6

9. Click Apply to open:https://www.shuijingwanwq.com/amp/, Google AdSense automatic ads have been successfully displayed. as shown in Figure 7

点击应用,打开:https://www.shuijingwanwq.com/amp/ ,Google AdSense 自动广告已经成功显示
Figure 7

10. It is recommended to set the mobile redirect, when it is opened in the mobile devicehttps://www.shuijingwanwq.com/automatically redirect tohttps://www.shuijingwanwq.com/amp/. AMP – Settings – Advance Settings – Mobile Redirection in the background of WordPress 6. as shown in Figure 8

建议设置移动重定向,当在移动设备中打开 https://www.shuijingwanwq.com/ 时,自动重定向至 https://www.shuijingwanwq.com/amp/ 。在 WordPress 6 后台的 AMP - Settings - Advance Settings - Mobile Redirection
8

Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.