ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.getPropertyQuotasSnapshot
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูโควต้าของที่พักทั้งหมดที่จัดระเบียบตามหมวดหมู่โควต้าของที่พักหนึ่งๆ ซึ่งจะเรียกเก็บโควต้าที่พัก 1 รายการจากหมวดหมู่ที่มีโควต้ามากที่สุด
คำขอ HTTP
GET https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ระบบจะแสดงโควต้าจากพร็อพเพอร์ตี้นี้ในคำตอบ รูปแบบ: properties/{property}/propertyQuotasSnapshot
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
สถานะปัจจุบันของโควต้าพร็อพเพอร์ตี้ทั้งหมดที่จัดเรียงตามหมวดหมู่โควต้า
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
name |
string
ตัวระบุ ชื่อทรัพยากรสแนปชอตโควต้าที่พัก
|
corePropertyQuota |
object (PropertyQuota )
โควต้าพร็อพเพอร์ตี้สำหรับโทเค็นพร็อพเพอร์ตี้หลัก
|
realtimePropertyQuota |
object (PropertyQuota )
โควต้าพร็อพเพอร์ตี้สำหรับโทเค็นพร็อพเพอร์ตี้แบบเรียลไทม์
|
funnelPropertyQuota |
object (PropertyQuota )
โควต้าพร็อพเพอร์ตี้สําหรับโทเค็นพร็อพเพอร์ตี้ Funnel
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eRetrieves property quota information for a given Google Analytics 4 property, organized by quota category (core, realtime, funnel).\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP GET request with the property ID specified in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eReturns a JSON response containing the current state of all property quotas, including their respective remaining tokens.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either "analytics.readonly" or "analytics" scope.\u003c/p\u003e\n"],["\u003cp\u003eThis action consumes 1 property quota from the category with the most remaining quota upon execution.\u003c/p\u003e\n"]]],["This content describes retrieving property quotas via a `GET` request to `https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}`. The `name` path parameter, specifying the property, is required. The request body must be empty. The response returns a JSON object containing the current state of `core`, `realtime`, and `funnel` property quotas, organized by category, along with a resource name. Authorization requires either the `analytics.readonly` or `analytics` OAuth scope. This operation consumes one quota from the highest-usage quota category.\n"],null,["# Method: properties.getPropertyQuotasSnapshot\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.PropertyQuotasSnapshot.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGet all property quotas organized by quota category for a given property. This will charge 1 property quota from the category with the most quota.\n\n### HTTP request\n\n`GET https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Quotas from this property will be listed in the response. Format: `properties/{property}/propertyQuotasSnapshot` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nCurrent state of all Property Quotas organized by quota category.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"corePropertyQuota\": { object (/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota) }, \"realtimePropertyQuota\": { object (/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota) }, \"funnelPropertyQuota\": { object (/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota) } } ``` |\n\n| Fields ||\n|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The property quota snapshot resource name. |\n| `core``Property``Quota` | `object (`[PropertyQuota](/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota)`)` Property Quota for core property tokens |\n| `realtime``Property``Quota` | `object (`[PropertyQuota](/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota)`)` Property Quota for realtime property tokens |\n| `funnel``Property``Quota` | `object (`[PropertyQuota](/analytics/devguides/reporting/data/v1/rest/v1alpha/PropertyQuota)`)` Property Quota for funnel property tokens |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/analytics.readonly`\n- `https://www.googleapis.com/auth/analytics`"]]