ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.dataStreams.eventEditRules.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการ EventEditRules ในสตรีมข้อมูลเว็บ
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ รูปแบบตัวอย่าง: property/123/dataStreams/456
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
ไม่บังคับ จำนวนทรัพยากรสูงสุดที่จะแสดง หากไม่ระบุ ระบบจะแสดงผลทรัพยากรสูงสุด 50 รายการ ค่าสูงสุดคือ 200 (ค่าที่สูงกว่าจะถูกเปลี่ยนเป็นค่าสูงสุด)
|
pageToken |
string
ไม่บังคับ โทเค็นของหน้าเว็บที่ได้รับจากการโทร eventEditRules.list ก่อนหน้า ระบุพารามิเตอร์นี้เพื่อเรียกข้อมูลหน้าถัดไป เมื่อใส่เลขหน้า พารามิเตอร์อื่นๆ ทั้งหมดที่ให้กับ eventEditRules.list ต้องตรงกับการเรียกใช้ที่ระบุโทเค็นของหน้าเว็บ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
ข้อความตอบกลับสำหรับ RPC eventEditRules.list
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"eventEditRules": [
{
object (EventEditRule )
}
],
"nextPageToken": string
} |
ช่อง |
eventEditRules[] |
object (EventEditRule )
รายการ EventEditRules เนื้อหาเหล่านี้จะเรียงลำดับแบบคงที่ แต่เรียงตามลำดับที่กำหนดเอง
|
nextPageToken |
string
โทเค็นซึ่งสามารถส่งเป็น pageToken เพื่อเรียกข้อมูลหน้าถัดไป หากเว้นช่องนี้ไว้ จะไม่มีหน้าลำดับต่อมา
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth รายการใดรายการหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eLists Event Edit Rules configured for a specified web data stream within a Google Analytics 4 property.\u003c/p\u003e\n"],["\u003cp\u003eAllows for pagination to retrieve large lists of Event Edit Rules, specifying the maximum number of results per page.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific Google Analytics scopes for read or edit access.\u003c/p\u003e\n"],["\u003cp\u003eProvides a response containing an array of Event Edit Rules and a token for retrieving subsequent pages, if available.\u003c/p\u003e\n"],["\u003cp\u003eEmploys gRPC Transcoding for its HTTP request structure and utilizes path and query parameters for resource identification and filtering.\u003c/p\u003e\n"]]],["This document outlines how to list EventEditRules for a web data stream using an HTTP GET request. The request is sent to a specific URL, defined by the `parent` path parameter (e.g., `properties/123/dataStreams/456`). Optional query parameters `pageSize` (max 200) and `pageToken` support pagination. The request body must be empty, and the response, in JSON format, contains a list of `eventEditRules` and a `nextPageToken` for retrieving subsequent pages if any. The requests requires authorization scopes `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics.edit`\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListEventEditRulesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists EventEditRules on a web data stream.\n\nHTTP request\n\n`GET https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------|\n| `parent` | `string` Required. Example format: properties/123/dataStreams/456 |\n\nQuery parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). |\n| `pageToken` | `string` Optional. A page token, received from a previous `eventEditRules.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `eventEditRules.list` must match the call that provided the page token. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body Response message for eventEditRules.list RPC.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"eventEditRules\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules#EventEditRule) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `eventEditRules[]` | `object (`[EventEditRule](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules#EventEditRule)`)` List of EventEditRules. These will be ordered stably, but in an arbitrary order. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\nAuthorization 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.edit`"]]