建立 ads.txt/app-ads.txt 檔案後,請網站管理員將檔案上傳至您的根網域。
「根網域」指的是公開字尾清單中的下一層。根據 IAB ads.txt 和 app-ads.txt 的 IAB 規格,您必須將檔案上傳到根網域。
範例
- 以
google.co.uk
為例,由於「co.uk
」列在公開字尾清單中,因此系統會將該網域視為根網域 - 系統不會將
maps.google.co.uk
視為根網域,因為「maps
」是前置字元 - 系統不會將
www.google.co.uk
視為根網域,因為「www
」是前置字元
如果您擁有多個根網域,必須分別將 ads.txt
/app-ads.txt
檔案上傳到每個根網域。
在 Ad Manager 中,依序按一下 [管理] [Ads.txt 管理],並確認 ads.txt
/app-ads.txt
檔案已上傳到您的每個網域。
ads.txt/app-ads.txt 檔案範例
採用 Google 產品的發布商應一律使用 google.com
做為網域名稱並加上發布商 ID。例如:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
google.com, pub-0000000000000000, RESELLER, f08c47fec0942fa0
採用其他非 Google 產品的發布商應列出其賣方平台或廣告交易平台網域名稱,再加上賣方帳戶 ID。例如:
greenadexchange.com, 12345, DIRECT, AEC242
blueadexchange.com, 4536, DIRECT
silverssp.com, 9675, RESELLER
如果 ads.txt
/app-ads.txt
檔案託管於子網域,會怎麼處理?
假如有子網域並以根網域中的 ads.txt
/app-ads.txt
檔案做為參照,則 Google 會檢索並強制執行放置在子網域中的 ads.txt
/app-ads.txt
檔案。
Ad Manager ads.txt
管理工具尚未顯示已檢索的子網域清單。
無法透過 CMS 在根網域中放置檔案,該怎麼辦?
請聯絡您的 CMS 供應商,他們將提供可為您代管 ads.txt
/app-ads.txt
檔案的功能。