หลีกเลี่ยง GPT API ที่เลิกใช้งานแล้ว
ภาพรวม
การตรวจสอบนี้ช่วยให้แน่ใจว่าหน้าเว็บไม่ได้ใช้ Google Publisher Tag (GPT) API ที่เลิกใช้งานแล้ว
API ที่เลิกใช้งานแล้วคือเมธอด googletag หรือตัวเลือกการกำหนดค่าซึ่งไม่มีการดูแลรักษาหรือจัดทำเอกสารประกอบอีกต่อไป เนื่องจากอาจมีการนำ API เหล่านี้ออกจาก GPT บางส่วนหรือทั้งหมด จึงไม่แนะนำให้ใช้ API ดังกล่าวและลักษณะการทำงานที่คาดเดาไม่ได้อาจมาจากการใช้งานต่อ
การแนะนำวิดีโอ
สังเกตรายละเอียดการตรวจสอบเพื่อดูว่าหน้าเว็บใช้ API ที่เลิกใช้งานแล้วรายการใดอยู่และหยุดนำไปใช้
API ที่เลิกใช้งานแล้วหลายรายการมีทางเลือกที่รองรับเพื่อให้ใช้งานแทนได้
ดูข้อมูลเพิ่มเติมเกี่ยวกับ API ที่เลิกใช้งานแล้วและทางเลือกที่แนะนำได้จากบันทึกประจำรุ่นของ GPT อย่างเป็นทางการ
การตรวจสอบนี้จะดูข้อความในคอนโซลเพื่อหาคำเตือนหรือข้อผิดพลาดที่มาจาก GPT ซึ่งเกี่ยวข้องกับ API ที่เลิกใช้งานแล้วหรือไม่แนะนำให้ใช้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-06-26 UTC
[null,null,["อัปเดตล่าสุด 2024-06-26 UTC"],[[["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"]]