ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Row
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ข้อมูลรายงานของแต่ละแถว ตัวอย่างเช่น หาก RunReportRequest มีข้อมูลต่อไปนี้
"dimensions": [
{
"name": "eventName"
},
{
"name": "countryId"
}
],
"metrics": [
{
"name": "eventCount"
}
]
1 แถวที่มี eventName เป็น "in_app_purchase", countryId เป็น "JP" และ eventCount เป็น 15 จะเป็นดังนี้
"dimensionValues": [
{
"value": "in_app_purchase"
},
{
"value": "JP"
}
],
"metricValues": [
{
"value": "15"
}
]
ช่อง |
dimensionValues[] |
object (DimensionValue )
รายการค่ามิติข้อมูลที่ขอ ใน PivotReport ค่ามิติข้อมูลจะแสดงสําหรับมิติข้อมูลที่รวมอยู่ใน Pivot เท่านั้น
|
metricValues[] |
object (MetricValue )
รายการค่าเมตริกที่มองเห็นได้ซึ่งขอ
|
MetricValue
การแสดง JSON |
{
// Union field one_value can be only one of the following:
"value": string
// End of list of possible types for union field one_value .
} |
ช่อง |
ฟิลด์สหภาพ one_value ค่าเมตริก one_value ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น |
value |
string
ค่าการวัด ดูประเภทได้ที่ MetricHeader
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eReport data is structured in rows, with each row containing dimension values and corresponding metric values.\u003c/p\u003e\n"],["\u003cp\u003eDimension values represent categories or attributes, like 'eventName' or 'countryId', while metric values represent quantitative data, like 'eventCount'.\u003c/p\u003e\n"],["\u003cp\u003eThe structure of the report allows for flexible data exploration by combining different dimensions and metrics.\u003c/p\u003e\n"],["\u003cp\u003eMetric values can be of various types, including but not limited to string type and are stored under the 'one_value' field as a 'value' entry.\u003c/p\u003e\n"]]],["The document outlines data structures for reporting, using JSON. A row contains `dimensionValues` and `metricValues`. `dimensionValues` lists dimension data, while `metricValues` shows metric data. For example, with dimensions like `eventName` and `countryId`, and a metric like `eventCount`, a row might show \"in_app_purchase\" (event), \"JP\" (country), and \"15\" (count). `MetricValue` stores a metric's value as a string. A `MetricValue` can only contain one value, as specified in the union `one_value`.\n"],null,["# Row\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MetricValue](#MetricValue)\n - [JSON representation](#MetricValue.SCHEMA_REPRESENTATION)\n\nReport data for each row. For example if RunReportRequest contains: \n\n \"dimensions\": [\n {\n \"name\": \"eventName\"\n },\n {\n \"name\": \"countryId\"\n }\n ],\n \"metrics\": [\n {\n \"name\": \"eventCount\"\n }\n ]\n\nOne row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: \n\n \"dimensionValues\": [\n {\n \"value\": \"in_app_purchase\"\n },\n {\n \"value\": \"JP\"\n }\n ],\n \"metricValues\": [\n {\n \"value\": \"15\"\n }\n ]\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dimensionValues\": [ { object (/analytics/devguides/reporting/data/v1/rest/v1beta/DimensionValue) } ], \"metricValues\": [ { object (/analytics/devguides/reporting/data/v1/rest/v1beta/Row#MetricValue) } ] } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dimension``Values[]` | `object (`[DimensionValue](/analytics/devguides/reporting/data/v1/rest/v1beta/DimensionValue)`)` List of requested dimension values. In a PivotReport, dimensionValues are only listed for dimensions included in a pivot. |\n| `metric``Values[]` | `object (`[MetricValue](/analytics/devguides/reporting/data/v1/rest/v1beta/Row#MetricValue)`)` List of requested visible metric values. |\n\nMetricValue\n-----------\n\nThe value of a metric.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `one_value` can be only one of the following: \"value\": string // End of list of possible types for union field `one_value`. } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------|\n| Union field `one_value`. One of metric value `one_value` can be only one of the following: ||\n| `value` | `string` Measurement value. See MetricHeader for type. |"]]