Tránh dùng các API GPT không còn được hỗ trợ
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tổng quan
Quá trình kiểm tra này đảm bảo rằng trang không sử dụng bất kỳ API Thẻ nhà xuất bản của Google (GPT) nào không dùng nữa.
API không dùng nữa là các phương pháp googletag hoặc tùy chọn cấu hình không còn được duy trì hoặc ghi nhận nữa. Vì các API này có thể bị xoá một phần hoặc hoàn toàn khỏi GPT, bạn không nên sử dụng chúng và các hành vi khó đoán có thể xảy ra nếu tiếp tục sử dụng chúng.
Đề xuất
Quan sát thông tin chi tiết của quá trình kiểm tra để xem trang đang sử dụng API không dùng nữa nào và xoá các API đó.
Nhiều API không dùng nữa sẽ có giải pháp thay thế được hỗ trợ để bạn có thể sử dụng.
Hãy xem ghi chú phát hành GPT chính thức để biết thêm thông tin về các API không dùng nữa và các lựa chọn thay thế đề xuất.
Quá trình kiểm tra này sẽ kiểm tra các thông báo trên bảng điều khiển để biết sự hiện diện của bất kỳ cảnh báo hoặc lỗi nào do GPT (Thẻ nhà xuất bản của Google) liên quan đến các API không dùng nữa hoặc không được dùng nữa.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThis 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.\u003c/p\u003e\n"],["\u003cp\u003ePublishers should review the audit details to pinpoint the specific deprecated APIs being used and replace them with supported alternatives, ensuring optimal functionality.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the official GPT release notes for comprehensive information regarding deprecated APIs and their recommended replacements to maintain a healthy ad setup.\u003c/p\u003e\n"]]],["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"],null,["# Avoid deprecated GPT APIs\n\nOverview\n--------\n\nThis audit ensures that the page does not use any deprecated Google Publisher Tag (GPT) APIs.\nDeprecated APIs are googletag methods or configuration options which are no longer maintained or documented. As these APIs\nmay be partly or wholly removed from GPT, their use is discouraged and unpredictable behavior could come from their\ncontinued use.\n\nRecommendations\n---------------\n\nObserve the details of the audit to see which deprecated APIs the page is using and remove their usages.\nMany deprecated APIs will have a supported alternative which can be used instead.\n\nCheck [the official GPT release notes](https://developers.google.com/publisher-tag/release-notes) for more information on\ndeprecated APIs and suggested alternatives.\n\nMore information\n----------------\n\nThis audit checks console messages for the presence of any warnings or errors coming from GPT which are related to deprecated or\ndiscouraged APIs. \n[View audit source](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/lighthouse-plugin-publisher-ads/audits/deprecated-api-usage.js) [Improve this article](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/docs/audits/deprecated-api-usage.md) [Report an issue](https://github.com/googleads/publisher-ads-lighthouse-plugin/issues/new?labels=documentation&template=documentation-feedback.md&title=Documentation+feedback%3A+deprecated-api-usage.md)\n\n\u003cbr /\u003e"]]