通知

前往改良版「我的 AdMob 頁面」,取得專屬最佳化提示、掌握帳戶健全度,以及完成必要設定。

應用程式

確認您的 app-ads.txt 檔案可供檢索

您在開發人員網域上設定好 app-ads.txt 檔案之後,Google 檢索器會處理下列作業:

  • 嘗試檢索檔案。
  • 剖析檔案內容,以確認賣家 ID 是否有權透過您的廣告空間營利。
注意:AdMob 可能需要幾天的時間才會反映 app-ads.txt 檔案的變更,如果網站的廣告請求次數不多,最長可能需要一個月。

為確保您的 app-ads.txt 檔案可供檢索,建議您完成下列疑難排解步驟。

確認檔案並非暫時無法使用

如果 Google 先前曾檢索您的 app-ads.txt 檔案,後續再檢索時卻無法存取,就會對先前查看過的項目採取以下處置:

  • 如果收到的回應為實質 404 錯誤 (網頁其實不存在,或 HTTP 狀態碼為 404),就會將項目清除。
  • 如果回應是轉址式 404 錯誤 (實際上不存在的網址傳回真正的網頁,或是 HTTP 狀態碼為 200),或者是 500 伺服器錯誤,則會將這些項目保留最多 5 天。

確認檔案可從根網域連上

domain.com/app-ads.txt 重新導向到 www.domain.com/app-ads.txt 是很常見的行為。App-ads.txt 檢索作業會從根網域開始,而根網域必須從 app-ads.txt 檔案返回或重新導向到 ads.txt 檔案。

只有在 domain.com/app-ads.txt 重新導向到 www.domain.com/app-ads.txt 時,Google 才會檢索位於後者的 app-ads.txt 檔案。

確認 robots.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 記錄。

確認檔案在傳回時包含 HTTP 200 OK 狀態碼

雖然在要求 app-ads.txt 檔案時,系統可能會在回應主體中傳回檔案內容,但如果回應標題中的狀態碼指出找不到檔案 (例如狀態碼 404),就會產生以下結果:

  • 系統會略過回應。
  • 系統會將檔案視為不存在。

請確認檔案包含 HTTP 200 OK 狀態碼。

確認檔案中沒有任何格式錯誤或無效字元

有些格式錯誤 (例如無效的空白字元) 並不容易發現,而且可能導致檢索器難以剖析並略過 app-ads.txt 檔案。請避免直接從 RTF 編輯器複製並貼上 app-ads.txt 項目 (建議使用純文字編輯器);您也可以使用 16 進位編輯器,在 app-ads.txt 檔案中找出無效的 UTF-8 字元。

確保可透過 HTTP 和 HTTPS 存取 app-ads.txt 檔案

Google 檢索器會嘗試檢索 HTTP 和 HTTPS 兩者上的所有 app-ads.txt 檔案。不過,404 (或 40X) 錯誤會導致先前檢索的項目遭到清除,即使 app-ads.txt 檔案是透過 HTTP 檢索也一樣。因此,如果透過 HTTPS 檢索會傳回 404 (或 40X),就會產生以下結果:

  • 系統會清除先前檢索到的項目。

因此,請確認 app-ads.txt 可透過 HTTP 和 HTTPS 兩者存取。

這對您有幫助嗎?

我們應如何改進呢?
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

搜尋
清除搜尋內容
關閉搜尋
主選單
12306929410078984238
true
搜尋說明中心
true
true
true
true
true
73175
false
false