避免使用已淘汰的 GPT API
總覽
這項稽核可確保網頁未使用任何已淘汰的 Google 發布商廣告代碼 (GPT) API。
已淘汰的 API 是 googletag 方法或設定選項,系統已不再維護或記錄這類選項。這些 API 可能會部分或全面從 GPT 中移除,因此我們不建議使用這類 API,以免發生無法預測的行為。
建議
查看稽核詳細資料,找出網頁使用哪些已淘汰的 API,並移除這些 API 的用途。
許多已淘汰的 API 都有支援的替代方案。
請參閱官方 GPT 版本資訊,進一步瞭解已淘汰 API 和建議的替代方案。
這項稽核會檢查控制台訊息,確認是否有來自 GPT 且與已淘汰或不建議的 API 相關的警告或錯誤。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[null,null,["上次更新時間:2024-06-26 (世界標準時間)。"],[[["This audit identifies the presence of outdated Google Publisher Tag (GPT) APIs on a webpage that are no longer supported and could lead to unpredictable behavior."],["Publishers should review the audit details to pinpoint the specific deprecated APIs being used and replace them with supported alternatives, ensuring optimal functionality."],["Refer to the official GPT release notes for comprehensive information regarding deprecated APIs and their recommended replacements to maintain a healthy ad setup."]]],[]]