रोके गए GPT API से बचें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
खास जानकारी
इस ऑडिट से यह पक्का होता है कि पेज पर, ऐसे Google पब्लिशर टैग (GPT) एपीआई का इस्तेमाल न किया जाता हो जो अब काम नहीं करता.
रोके गए एपीआई, Googletag के तरीके या कॉन्फ़िगरेशन के विकल्प हैं जिनका अब रखरखाव नहीं किया जाता है या जिन्हें कोई दस्तावेज़ नहीं बनाया जाता है. ये एपीआई GPT से कुछ हद तक या पूरी तरह से हटाए जा सकते हैं. इसलिए, इन्हें इस्तेमाल करने से मना किया जाता है. साथ ही, अगर बार-बार इन एपीआई का इस्तेमाल किया जाए, तो यह उनके काम करने के तरीके से मेल नहीं खाता है.
सुझाव
ऑडिट की जानकारी पर नज़र डालकर देखें कि पेज किस काम न करने वाले एपीआई का इस्तेमाल कर रहा है और उनका इस्तेमाल हटाएं.
कई काम न करने वाले एपीआई के लिए, एक और विकल्प उपलब्ध होगा. हालांकि, इस विकल्प का इस्तेमाल किया जा सकता है.
बंद किए गए एपीआई और सुझाए गए विकल्पों के बारे में ज़्यादा जानकारी के लिए, GPT की जानकारी वाला आधिकारिक दस्तावेज़ देखें.
यह ऑडिट, कंसोल मैसेज की जांच करके यह पता लगाता है कि GPT से मिलने वाली किसी चेतावनी या गड़बड़ी का पता, उस एपीआई से जुड़ा है जिसे
अब काम नहीं करता या जिसे अस्वीकार किया गया है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]