第一步:使用 Ads.txt Manager 插件验证网站所有权 获取 AdSense 验证代码 谷歌 Adsense 地址:https://adsense.google.com/ 首先在 Google AdSense 后台添加你的网站域名。系统会提供一段 ads.txt 验证代码,用于验证你对网站的所有权。这段代码格式类似: text google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0 安装 Ads.txt Manager 插件 在 WordPress 后台进入 "插件" → "安装插件",搜索 "Ads.txt Manager"。找到由 10up 开发的插件后点击安装并启用。 配置 ads.txt 文件 启用插件后,在 WordPress 后台找到 "设置" → "Ads.txt" 菜单。在 "Manage Ads.txt" 输入框中粘贴从 Google AdSense 获取的验证代码,然后保存设置。 验证配置正确性 配置完成后,访问 https://...