Unikanie używania wycofanych interfejsów GPT API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przegląd
Ten audyt pozwala upewnić się, że strona nie korzysta z żadnych wycofanych interfejsów API tagów wydawcy Google (GPT).
Wycofane interfejsy API to opcje konfiguracji lub metody googletag, które nie są już obsługiwane ani udokumentowane. Ponieważ te interfejsy API mogą zostać częściowo lub całkowicie usunięte z GPT, odradzamy ich używanie, ponieważ dalsze korzystanie z nich może prowadzić do nieprzewidywalnych zachowań.
Rekomendacje
Zapoznaj się ze szczegółami audytu, aby sprawdzić, których wycofanych interfejsów API używa strona, i usunąć ich przypadki użycia.
Wiele wycofanych interfejsów API ma obsługiwaną alternatywę, której można użyć w zamian.
Aby dowiedzieć się więcej o wycofanych interfejsach API i sugerowanych zamiennikach, zajrzyj do oficjalnych informacji o wersji GPT.
W ramach tego audytu komunikaty w konsoli są sprawdzane pod kątem obecności wszelkich ostrzeżeń lub błędów związanych z tagami GPT, które są związane z wycofanymi lub odradzanymi interfejsami API.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]