避免使用已弃用的 GPT API
概览
此项审核旨在确保网页没有使用任何已弃用的 Google Publisher Tag (GPT) API。
已弃用的 API 是指我们不再维护或记录的 googletag 方法或配置选项。由于这些 API 可能会部分或全部从 GPT 中移除,因此我们不建议使用它们,而且继续使用它们可能会导致意外行为。
建议
查看审核详情,了解网页使用了哪些已弃用的 API 并移除它们的使用。
许多已弃用的 API 都有受支持的替代方法,您可以改用替代方法。
如需详细了解已弃用的 API 和建议的替代方案,请参阅官方 GPT 版本说明。
此项评估会检查控制台消息,以了解是否出现了任何源于 GPT 且与已弃用或不建议使用的 API 相关的警告或错误。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):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."]]],["The audit checks for deprecated Google Publisher Tag (GPT) APIs, which are no longer maintained. Usage of these APIs, identified through console warnings or errors, is discouraged and may lead to unpredictable behavior or removal. Users should identify deprecated APIs and remove them from the page. The official GPT release notes are provided for reference, offering information on deprecation details and suggested alternatives.\n"]]