Google Analytics के लिए, एमसीपी सर्वर आज़माएं. इसे
GitHub से इंस्टॉल करें. साथ ही, ज़्यादा जानकारी के लिए
सूचना देखें.
REST Resource: properties.customDimensions
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: कस्टम डाइमेंशन
कस्टम डाइमेंशन की परिभाषा.
JSON के काेड में दिखाना |
{
"name": string,
"parameterName": string,
"displayName": string,
"description": string,
"scope": enum (DimensionScope ),
"disallowAdsPersonalization": boolean
} |
फ़ील्ड |
name |
string
सिर्फ़ आउटपुट के लिए. इस कस्टम डाइमेंशन संसाधन के लिए संसाधन का नाम. फ़ॉर्मैट: प्रॉपर्टी/{property}/customDimensions/{customआयाम}
|
parameterName |
string
ज़रूरी है. इम्यूटेबल. इस कस्टम डाइमेंशन के लिए, टैगिंग पैरामीटर का नाम. अगर यह उपयोगकर्ता के स्कोप वाला डाइमेंशन है, तो यह उपयोगकर्ता प्रॉपर्टी का नाम होगा. अगर यह इवेंट के स्कोप वाला डाइमेंशन है, तो इवेंट पैरामीटर का नाम इस तरह का होगा. अगर यह आइटम के स्कोप वाला डाइमेंशन है, तो यह पैरामीटर का नाम ई-कॉमर्स आइटम कलेक्शन में दिखेगा. इसमें सिर्फ़ अक्षर, अंक, और अंडरस्कोर वर्ण हो सकते हैं. ये वर्ण अक्षर से शुरू होते हैं. उपयोगकर्ता के स्कोप वाले डाइमेंशन के लिए ज़्यादा से ज़्यादा 24 वर्ण और इवेंट के स्कोप वाले डाइमेंशन के लिए 40 वर्ण.
|
displayName |
string
ज़रूरी है. इस कस्टम डाइमेंशन का डिसप्ले नेम, जैसा कि Analytics के यूज़र इंटरफ़ेस (यूआई) में दिखाया गया है. इसमें ज़्यादा से ज़्यादा 82 वर्ण हो सकते हैं. इसमें अक्षर और अंक के साथ स्पेस और अंडरस्कोर शामिल हैं. सिस्टम से जनरेट किए गए लेगसी डिसप्ले नेम में स्क्वेयर ब्रैकेट हो सकते हैं. हालांकि, इस फ़ील्ड को अपडेट करने पर, कभी भी स्क्वेयर ब्रैकेट की अनुमति नहीं होगी.
|
description |
string
ज़रूरी नहीं. इस कस्टम डाइमेंशन के लिए जानकारी. ज़्यादा से ज़्यादा 150 वर्ण.
|
scope |
enum (DimensionScope )
ज़रूरी है. इम्यूटेबल. इस डाइमेंशन का स्कोप.
|
disallowAdsPersonalization |
boolean
ज़रूरी नहीं. अगर नीति को 'सही है' पर सेट किया जाता है, तो इस डाइमेंशन को एनपीए के तौर पर सेट किया जाता है. साथ ही, इसे दिलचस्पी के मुताबिक विज्ञापन दिखाने की सेटिंग से बाहर रखा जाता है. फ़िलहाल, यह सुविधा सिर्फ़ उपयोगकर्ता के स्कोप वाले कस्टम डाइमेंशन के साथ काम करती है.
|
DimensionScope
इस डाइमेंशन के स्कोप के लिए मान्य वैल्यू.
Enums |
DIMENSION_SCOPE_UNSPECIFIED |
स्कोप की जानकारी नहीं है या तय नहीं किया गया है. |
EVENT |
डाइमेंशन किसी इवेंट तक सीमित होता है. |
USER |
डाइमेंशन का दायरा उपयोगकर्ता तक सीमित है. |
ITEM |
डाइमेंशन का दायरा ई-कॉमर्स आइटम तक है |
तरीके |
|
किसी प्रॉपर्टी में कस्टम डाइमेंशन को संग्रहित करता है. |
|
एक कस्टम डाइमेंशन बनाता है. |
|
एक कस्टम डाइमेंशन खोजें. |
|
यह किसी प्रॉपर्टी में कस्टम डाइमेंशन की सूची बनाता है. |
|
किसी प्रॉपर्टी का कस्टम डाइमेंशन अपडेट करता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eCustomDimension\u003c/code\u003e resource allows defining custom dimensions with specific parameters like name, display name, description, scope, and whether it's excluded from ads personalization.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of a custom dimension can be \u003ccode\u003eEVENT\u003c/code\u003e, \u003ccode\u003eUSER\u003c/code\u003e, or \u003ccode\u003eITEM\u003c/code\u003e, determining the level at which the dimension is applied.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage custom dimensions using methods like \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, \u003ccode\u003eupdate\u003c/code\u003e, and \u003ccode\u003earchive\u003c/code\u003e to control their lifecycle within your Google Analytics 4 property.\u003c/p\u003e\n"],["\u003cp\u003eCustom dimensions can be user-scoped, event-scoped or item-scoped, each with specific requirements for the parameter name used.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of a \u003ccode\u003eCustomDimension\u003c/code\u003e includes fields for essential properties, allowing programmatic management of custom dimensions.\u003c/p\u003e\n"]]],["Custom dimensions are defined with properties like `name`, `parameterName`, `displayName`, `description`, `scope`, and `disallowAdsPersonalization`. The `parameterName` is a tagging parameter, while `scope` defines if it's for events, users, or items. Actions include creating, getting, listing, patching, and archiving a custom dimension. The `DimensionScope` can be `EVENT`, `USER`, or `ITEM`. `disallowAdsPersonalization` excludes the dimension from ads personalization and is only supported for user-scoped custom dimensions.\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/v1alpha/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/v1alpha/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/v1alpha/properties.customDimensions/archive) | Archives a CustomDimension on a property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customDimensions/create) | Creates a CustomDimension. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customDimensions/get) | Lookup for a single CustomDimension. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customDimensions/list) | Lists CustomDimensions on a property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customDimensions/patch) | Updates a CustomDimension on a property. |"]]