ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
REST Resource: properties.customDimensions
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: CustomDimension
คำจำกัดความของ CustomDimension
การแสดง JSON |
{
"name": string,
"parameterName": string,
"displayName": string,
"description": string,
"scope": enum (DimensionScope ),
"disallowAdsPersonalization": boolean
} |
ช่อง |
name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรสำหรับทรัพยากร CustomDimension นี้ รูปแบบ: พร็อพเพอร์ตี้/{property}/customDimensions/{customDimension}
|
parameterName |
string
ต้องระบุ เปลี่ยนแปลงไม่ได้ ชื่อพารามิเตอร์การติดแท็กสำหรับมิติข้อมูลที่กำหนดเองนี้ หากนี่เป็นมิติข้อมูลระดับผู้ใช้ นี่จะเป็นชื่อพร็อพเพอร์ตี้ผู้ใช้ หากนี่เป็นมิติข้อมูลที่กําหนดขอบเขตระดับเหตุการณ์ พารามิเตอร์นี้จะเป็นชื่อพารามิเตอร์เหตุการณ์ หากเป็นมิติข้อมูลระดับสินค้า พารามิเตอร์นี้จะเป็นชื่อพารามิเตอร์ในอาร์เรย์สินค้าอีคอมเมิร์ซ ใช้ได้เฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกันและขีดล่างโดยขึ้นต้นด้วยตัวอักษร ความยาวสูงสุด 24 อักขระสําหรับมิติข้อมูลที่กําหนดขอบเขตระดับผู้ใช้ และ 40 อักขระสําหรับมิติข้อมูลที่กําหนดขอบเขตระดับเหตุการณ์
|
displayName |
string
ต้องระบุ ชื่อที่แสดงของมิติข้อมูลที่กำหนดเองนี้ตามที่แสดงใน UI ของ Analytics ความยาวสูงสุด 82 อักขระ ได้แก่ ตัวอักษรและตัวเลขคละกัน รวมถึงช่องว่าง และขีดล่างเริ่มต้นด้วยตัวอักษร ชื่อที่แสดงซึ่งระบบสร้างขึ้นแบบเดิมอาจมีวงเล็บเหลี่ยม แต่การอัปเดตฟิลด์นี้จะไม่อนุญาตให้ใช้เครื่องหมายวงเล็บเหลี่ยม
|
description |
string
ไม่บังคับ คำอธิบายสำหรับมิติข้อมูลที่กำหนดเองนี้ ความยาวสูงสุด 150 อักขระ
|
scope |
enum (DimensionScope )
ต้องระบุ เปลี่ยนแปลงไม่ได้ ขอบเขตของมิติข้อมูลนี้
|
disallowAdsPersonalization |
boolean
ไม่บังคับ หากตั้งค่าเป็น "จริง" ให้ตั้งค่ามิติข้อมูลนี้เป็น NPA แล้วยกเว้นมิติข้อมูลจากการปรับโฆษณาตามโปรไฟล์ของผู้ใช้ ปัจจุบันมิติข้อมูลดังกล่าวรองรับเฉพาะมิติข้อมูลที่กําหนดเองระดับผู้ใช้เท่านั้น
|
DimensionScope
ค่าที่ถูกต้องสำหรับขอบเขตของมิติข้อมูลนี้
Enum |
DIMENSION_SCOPE_UNSPECIFIED |
ไม่รู้จักหรือไม่ได้ระบุขอบเขต |
EVENT |
มิติข้อมูลมีขอบเขตอยู่ที่เหตุการณ์ |
USER |
มิติข้อมูลที่กำหนดขอบเขตที่ผู้ใช้ |
ITEM |
มิติข้อมูลที่กำหนดขอบเขตไว้ที่รายการอีคอมเมิร์ซ |
เมธอด |
|
เก็บ CustomDimension ในพร็อพเพอร์ตี้ |
|
สร้าง CustomDimension |
|
ค้นหา CustomDimension เดียว |
|
แสดงรายการมิติข้อมูลที่กำหนดเองในพร็อพเพอร์ตี้ |
|
อัปเดต CustomDimension ในพร็อพเพอร์ตี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eCustomDimension\u003c/code\u003e resource allows defining custom dimensions with properties like name, display name, description, scope, and ads personalization settings.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of a \u003ccode\u003eCustomDimension\u003c/code\u003e can be event, user, or item, dictating which data it's associated with.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage \u003ccode\u003eCustomDimensions\u003c/code\u003e through methods like create, get, list, update, and archive to control your analytics data granularity.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomDimensions\u003c/code\u003e utilize tagging parameters (e.g., event parameter name, user property name) to collect and organize specific data points.\u003c/p\u003e\n"]]],["Custom dimensions are defined with properties like `name`, `parameterName`, `displayName`, `description`, `scope`, and `disallowAdsPersonalization`. The `parameterName` is a tagging parameter, limited to 24-40 characters, while `displayName` is an 82-character label. `Scope` can be event, user, or item. Available methods for `CustomDimension` include `archive`, `create`, `get`, `list`, and `patch`, enabling actions such as creating, retrieving, and updating custom dimension resources.\n"],null,["# REST Resource: properties.customDimensions\n\n- [Resource: CustomDimension](#CustomDimension)\n - [JSON representation](#CustomDimension.SCHEMA_REPRESENTATION)\n- [DimensionScope](#DimensionScope)\n- [Methods](#METHODS_SUMMARY)\n\nResource: CustomDimension\n-------------------------\n\nA definition for a CustomDimension.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"parameterName\": string, \"displayName\": string, \"description\": string, \"scope\": enum (/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions#DimensionScope), \"disallowAdsPersonalization\": boolean } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension} |\n| `parameterName` | `string` Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions. |\n| `displayName` | `string` Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets. |\n| `description` | `string` Optional. Description for this custom dimension. Max length of 150 characters. |\n| `scope` | `enum (`[DimensionScope](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions#DimensionScope)`)` Required. Immutable. The scope of this dimension. |\n| `disallowAdsPersonalization` | `boolean` Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions. |\n\nDimensionScope\n--------------\n\nValid values for the scope of this dimension.\n\n| Enums ||\n|-------------------------------|-------------------------------------|\n| `DIMENSION_SCOPE_UNSPECIFIED` | Scope unknown or not specified. |\n| `EVENT` | Dimension scoped to an event. |\n| `USER` | Dimension scoped to a user. |\n| `ITEM` | Dimension scoped to eCommerce items |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------|\n| ### [archive](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions/archive) | Archives a CustomDimension on a property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions/create) | Creates a CustomDimension. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions/get) | Lookup for a single CustomDimension. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions/list) | Lists CustomDimensions on a property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions/patch) | Updates a CustomDimension on a property. |"]]