AdMob 开始实现对 app-ads.txt 文件的支持

AdMob starts implementing support for app-ads.txt files

我今天收到一封邮件,标题为 AdMob 开始实施对 app-ads.txt 文件的支持

Ensure that the app - ads.txt file is executed correctly before enforcing execution

At Google, we’re always committed to protecting your apps for the profit you want. One of the key challenges for applications is fraudulent publisher inventory from some abusers. To help publishers meet this challenge, we’re ready to support and implement app-ads.txt files in all ad systems to ensure that what advertisers spend reaches the desired publishers.

What is app-ads.txt?

App-ads.txt is an addition to the original ads.txt standard, which provides a mechanism for web publishers to advertise digital media vendors. It is designed to protect app publishers from fraud in the publisher inventory by fraudsters.

What changes will happen, and what do they mean to you?

We are happy to announce the support and implementation of app-ads.txt files in AdMob for publishers who have published the app-ads.txt file in their app developer domain, starting 2019-08-08.

To prepare for this change, please make sure that the app-ads.txt file published in your app's developer domain does not contain any errors or spelling problems.

How can you make sure that the app-ads.txt file is executed correctly?

If your file contains any errors or spelling problems, this will expose your ads to blocking, because any files posted are a source of verification for execution.

Therefore, it is extremely important to properly execute the file and correct any errors before 2019-08-08, otherwise the file will be unpublished from your domain to avoid any unwanted loss of profits.

As such, we invite you to carefully review the app-ads.txt file if you have published any files before the implementation date. The file must be published in the root directory of the website displayed in your listing on the Android Play Store or iOS App Store. You can get more details on the IAB hosting specifications.

我了解到 app-ads.txt 类似于 Google Adsense ads.txt,目前位于域名后的 /ads.txt 扩展名中,所以我该如何将代码添加到新扩展 /app-ads.txt ?

A​​d Network 公司推出了 app-ads.txt 来防止广告欺诈,在这里我向您解释如何在 Ad Network 中使用 app-ads.txt?

首先,购买与您的应用程序相关的新域并将此域(网站)添加到您的应用程序商品详情页面现在从您的 Admob 帐户生成一个应用程序-ads.txt 文件

  • 单击左侧边栏中的“应用程序”
  • 单击查看所有应用程序
  • 现在点击app-ads.txt文件生成发布者id。
  • 现在复制此代码段并将其保存在 app-ads.txt 中,并将此文件放在您域的根目录中。

Google 将在 24 小时内自动抓取此文件

AdMob 应用程序-Ads.txt 无域

无需购买域名。如果您没有网站,可以按照以下步骤操作。

  1. 访问app-ads-txt.com
  2. 注册一个帐户
  3. 添加您的应用程序
  4. 生成你的APP-ADS.TXT
  5. 发布您的应用程序-ADS.TXT:您将获得一个 link 以在您的开发者控制台(商品详情网站选项)上发布并等待 24 小时。

您不能原谅此重定向:

这个在'Custom Redirect',对我有用!

我很久以前就知道这个问题,但是经过大量的搜索和关注我找到了答案

  1. 转到您的博客仪表板 > 设置 > 搜索首选项。
  2. 现在在错误和重定向下,您将看到自定义重定向
  3. 点击旁边的编辑 link。
  4. 然后点击新建重定向并输入不存在或已删除的 post URL 路径后跟 From 块中的根域。 (/your-shorten-keyword) 在我们的案例中 (/app-ads.txt)
  5. 接下来,在要阻止到您要重定向的位置中输入 URL 路径,后跟根域。 (如 /p/page.html 或 /20xx/xx/post-title.html) 在我们的例子中 /ads.txt

为了方便,您可以查看下图:

点击保存更改,您就完成了!

Source

我找到的最佳解决方案是使用 Firebase 托管(免费)

那么您的应用程序就不必 website/domain-ads.txt。您可以在 Firebase 上免费托管它。

这是来自 Google 的 HowTo,介绍如何实现这一目标。 Publish app-ads.txt with Firebase Hosting

此解决方案的美妙之处在于,您仍然可以重定向到创建到任何您想要的网站的 Firebase Url。

例如,在您的 Google Play 帐户中,您发布了 URL 社交媒体作为您的网站。如果没有重定向,您必须将 Firebase URL 放在那里,但是通过重定向,您仍然可以在 Google Play 控制台中拥有自己的 Website/URL 并重定向 firebase URL给它。用户将看不到任何差异或变化。