通知

在经过改进的“我的 AdMob 页面”上,您可以获取个性化的优化提示,了解您帐号的优化程序以及设置完成情况。

应用

解决 app-ads.txt 的问题

建议您仔细查看帐号中收到的详细信息,确定 app-ads.txt 文件未被找到和未通过验证的原因。下表详细介绍了如何排查 app-ads.txt 问题。

问题 应对措施
找不到 app-ads.txt 文件。建议做法

设置 app-ads.txt 文件,并将其发布到您的开发者网站所在的网域中。按照说明设置 app-ads.txt 文件

确保您的应用已在 Google Play 或 Apple App Store 中注册,并且该应用的商品详情中注明了开发者网站。

AdMob 最多可能需要 24 小时才能自动抓取并验证您的 app-ads.txt 文件。请等待至少 24 小时,以便系统更新 app-ads.txt 的状态。

注意:如果您最近添加了开发者网站或更新了应用详情,AdMob 将需要一段时间才能检测到这些更改:

  • Google Play 应用:最多 24 小时
  • Apple App Store 应用:最多 7 天
应用的商品详情中缺少开发者网站。建议做法

在 Google Play 或 Apple App Store 的应用详情中添加开发者网站。我们将使用您的网站域名在网站的根路径中查找 app-ads.txt 文件。了解详情

如果您的应用以多种语言发布,请验证各语言版本对应的开发者网站是否均显示正确。

注意:如果您最近添加了开发者网站或更新了应用详情,AdMob 将需要一段时间才能检测到这些更改:

  • Google Play 应用:最多 24 小时
  • Apple App Store 应用:最多 7 天
您的开发者网站网址无效。建议做法 请检查开发者网站的网址,确保它能正常运行。还要确保应用详情中的开发者网站网址没有拼写错误。
您的 app-ads.txt 文件托管在不受支持的子网域上。建议做法

请确保您的网络服务器托管您的 app-ads.txt 文件,或在您输入 AdMob 帐号中显示的 app-ads.txt 网址时能够重定向到正确的位置。帐号中显示的 app-ads.txt 网址是 AdMob 用于查找该文件的网址。

如果您无法在当前位置发布文件或想要使用其他网站,请将应用商品详情中的开发者网站更新为原网站的子网域或其他网域。

如需了解详情,请参阅 app-ads.txt 常见问题解答

您的 app-ads.txt 文件格式不正确。建议做法

查看 IAB Tech Lab 提供的应用授权卖方规范,确保您的文件格式正确无误。

检查您的 app-ads.txt 文件中是否存在以下问题:

  • 发布商 ID 缺失或不正确
  • 网址或发布商 ID 中有拼写错误
  • 发布商 ID 格式不正确
  • 域名错误,例如使用了 admob.com 而不是 google.com

将包含发布商 ID 的个性化代码段从 AdMob 复制并粘贴到 app-ads.txt 文件中。要查找您的代码段,请执行以下操作:

  1. 访问 https://apps.admob.com,登录您的 AdMob 账号。
  2. 在边栏中点击应用
  3. 点击所有应用
  4. 点击 app-ads.txt 标签。
  5. 点击如何设置 app-ads.txt
  6. 点击要复制的代码段旁边的 复制
  7. 将代码段粘贴到您的 app-ads.txt 文件中。
您的发布商 ID 格式不正确。建议做法

您需要更新 app-ads.txt 文件,使之包含格式正确的发布商 ID。

将包含发布商 ID 的个性化代码段从 AdMob 复制并粘贴到 app-ads.txt 文件中。要查找您的代码段,请执行以下操作:

  1. 访问 https://apps.admob.com,登录您的 AdMob 账号。
  2. 在边栏中点击应用
  3. 点击所有应用
  4. 点击 app-ads.txt 标签。
  5. 点击如何设置 app-ads.txt
  6. 点击要复制的代码段旁边的 复制
  7. 将代码段粘贴到您的 app-ads.txt 文件中。
您的发布商 ID 缺失。建议做法

您需要更新 app-ads.txt 文件,使之包含您的发布商 ID。

将包含发布商 ID 的个性化代码段从 AdMob 复制并粘贴到 app-ads.txt 文件中。要查找您的代码段,请执行以下操作:

  1. 访问 https://apps.admob.com,登录您的 AdMob 账号。
  2. 在边栏中点击应用
  3. 点击所有应用
  4. 点击 app-ads.txt 标签。
  5. 点击如何设置 app-ads.txt
  6. 点击要复制的代码段旁边的 复制
  7. 将代码段粘贴到您的 app-ads.txt 文件中。
有一个 robots.txt 文件不允许 Google 抓取工具抓取 app-ads.txt 文件。建议做法

如果 robots.txt 文件限制抓取,抓取工具可能会忽略 app-ads.txt 文件。如果您的 app-ads.txt 网址重定向到其他主机名,请注意,针对该后续主机名的任何 robots.txt 文件也会影响抓取工具。

请更新您的 robots.txt 文件,以允许 Google 抓取 app-ads.txt 文件。

在 robots.txt 文件中添加以下两行文字:

User-agent: Google-adstxt

Disallow:

注意:除了 Google-adstxt 之外,抓取工具还会遵循 Mediapartners-GoogleGooglebot robots.txt User-agent 记录。

 

看到不属于您的应用?了解详情

该内容对您有帮助吗?

您有什么改进建议?
true
Show your support to promote DEI in Gaming by turning intentions into action!

Check out the newly launched Diversity in Gaming website, where you can find video stories and written pledges from global gaming developers. This campaign centers on 3 pillars: diverse teams, diverse games and diverse audiences showing how diversity is not just good for gamers, but for business as well. Show your support by taking the pledge to promote DEI in Gaming and share it on social!

Learn More

搜索
清除搜索内容
关闭搜索框
主菜单
306480495812484788
true
搜索支持中心
true
true
true
true
true
73175
false
false