
內容簡介
這個 WordPress 外掛可以讓你在 WordPress 內創建、管理和驗證你的 ads.txt 和 app-ads.txt,就像管理任何其他內容資源一樣。需要 PHP 7.4+ 和 WordPress 5.7+。
什麼是 ads.txt?
Ads.txt 是由互動廣告局啟動的一個倡議,旨在讓發布者掌控誰可以出售他們的廣告庫存。通過與各種發布者合作,我們在 10up 內部創建了一種方式,可以在 WordPress 內管理和驗證你的 ads.txt 文件,消除了上傳文件的必要性。插件內建的驗證功能可以避免錯誤的記錄,這些記錄可能會導致問題被緩存長達 24 小時,進而導致廣告收入下降。
技術細節
需要 PHP 7.4+。
需要 WordPress 5.7+。
廣告阻擋程序可能會破壞編輯屏幕上的語法突出顯示和預保存錯誤檢查。
需要啟用重寫功能。如果不啟用重寫功能,WordPress 就無法知道當收到請求時應提供 /ads.txt。
你的網站 URL 不得包含路徑(例如:https://example.com/site/ 或基於路徑的多站點安裝)。儘管插件在管理員中看起來能正常運作,但它不會顯示 https://example.com/site/ads.txt 的內容。這是因為插件遵循 IAB 規範,要求 ads.txt 文件位於域名或子域名的根目錄下。
那什麼是 ads.cert?
我們正在密切監控廣告欺詐領域的持續發展,認為這個外掛不僅可以創建和管理 ads.txt 文件,還可以為未來的規範變更和升級做好準備。Ads.cert 目前仍處於極早期的階段,因此我們認為實施 ads.txt 沒有任何即時的問題。
這可以用於多站點嗎?
可以!但是,如果你使用子目錄安裝,它只適用於主網站。這是因為根據 ads.txt 規範,每個域名或子域名只能有一個 ads.txt。我們建議按網站啟用 Ads.txt Manager。
外掛標籤
開發者團隊
原文外掛簡介
Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, like any other content asset. Requires PHP 7.4+.
What is ads.txt?
Ads.txt is an initiative by the Interactive Advertising Bureau to enable publishers to take control over who can sell their ad inventory. Through our work at 10up with various publishers, we’ve created a way to manage and validate your ads.txt file from within WordPress, eliminating the need to upload a file. The validation baked into the plugin helps avoid malformed records, which can cause issues that end up cached for up to 24 hours and can lead to a drop in ad revenue.
Technical Notes
Requires PHP 7.4+.
Ad blockers may break syntax highlighting and pre-save error checking on the edit screen.
Rewrites need to be enabled. Without rewrites, WordPress cannot know to supply /ads.txt when requested.
Your site URL must not contain a path (e.g. https://example.com/site/ or path-based multisite installs). While the plugin will appear to function in the admin, it will not display the contents at https://example.com/site/ads.txt. This is because the plugin follows the IAB spec, which requires that the ads.txt file be located at the root of a domain or subdomain.
What about ads.cert?
We’re closely monitoring continued developments in the ad fraud space, and see this plugin as not only a way to create and manage your ads.txt file but also be prepared for future changes and upgrades to specifications. Ads.cert is still in the extremely early stages so we don’t see any immediate concerns with implementing ads.txt.
Can I use this with multisite?
Yes! However, if you are using a subfolder installation it will only work for the main site. This is because you can only have one ads.txt for a given domain or subdomain per the ads.txt spec. Our recommendation is to only activate Ads.txt Manager per-site.
