เอกสารนี้จะอธิบายถึงขีดจำกัดและโควต้าสำหรับ Google Tag Manager API
ภาพรวม
เว็บไซต์หลายล้านแห่งใช้ Google Tag Manager เพื่อปกป้องระบบไม่ให้รับข้อมูลมากเกินกว่าจะจัดการได้ และเพื่อให้การกระจายทรัพยากรของระบบอย่างเท่าเทียม ได้มีการใช้ขีดจำกัดบางอย่าง นโยบายของเรามีดังนี้และอาจมีการเปลี่ยนแปลง
กำลังรับโควต้า
คุณต้องลงทะเบียนแอปพลิเคชันใน
คอนโซล Google API เพื่อรับโควต้าใดๆ ระบบจะไม่อนุญาตโควต้าที่ไม่ได้ลงทะเบียน เมื่อลงทะเบียนแอปพลิเคชันใหม่ คุณจะได้รับรหัสไคลเอ็นต์ที่ไม่ซ้ำกันเพื่อระบุแอปพลิเคชันแต่ละรายการในโปรเจ็กต์ดังกล่าว
อ่านส่วนคีย์ สิทธิ์เข้าถึง ความปลอดภัย และข้อมูลระบุตัวตนของคู่มือคอนโซล API เพื่อดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีที่รหัสไคลเอ็นต์ระบุแอปพลิเคชัน
ขีดจำกัดโควต้าทั่วไป
ขีดจำกัดโควต้าต่อไปนี้มีผลกับคำขอทั้งหมดที่ส่งไปยัง Tag Manager API
คำขอ 10,000 รายการต่อโปรเจ็กต์ต่อวัน
0.25 คำค้นหาต่อวินาที (QPS) ต่อโปรเจ็กต์
โควต้าเหล่านี้ไม่ขึ้นอยู่กับการตั้งค่าที่คุณตั้งค่าในคอนโซล API ได้ หากคุณตั้งค่าขีดจำกัดต่อผู้ใช้ของโปรเจ็กต์สูงกว่า 0.25 QPS นโยบายโควต้าของ Google Tag Manager จะยังคงมีผลและจำกัดคำขอต่อโปรเจ็กต์ไว้ที่ 0.25 QPS
เกินโควต้า
หากเกินโควต้าแล้ว Google Tag Manager API จะส่งกลับข้อผิดพลาดสำหรับคำขอเพิ่มเติม ซึ่งได้แก่ รหัสสถานะ HTTP 403 Forbidden และข้อความที่ระบุว่าบัญชีหนึ่งๆ มีโควต้าไม่เพียงพอที่จะดำเนินการต่อ
[null,null,["อัปเดตล่าสุด 2023-12-21 UTC"],[[["Google Tag Manager API usage is subject to limits and quotas to ensure system stability and fair resource allocation."],["All applications must be registered in the Google API Console to receive quota and obtain a unique client ID."],["General quota limits include 10,000 requests per project per day and 0.25 queries per second (QPS) per project."],["Exceeding quota limits results in a `403 Forbidden` error, but higher quotas can be requested through the API Console."]]],["The Google Tag Manager API enforces quota limits to manage system resources. Every application must be registered in the Google API Console to receive quota. Limits are set at 10,000 requests per project daily and 0.25 queries per second (QPS) per project, enforced independently of console settings. Exceeding quotas results in a `403 Forbidden` error. Daily quotas refresh at midnight PST, and QPS is measured in a 100 second window. An increase in quota can be requested in the API Console.\n"]]