डाइमेंशन आपके डेटा के एट्रिब्यूट होते हैं. उदाहरण के लिए, शहर के डाइमेंशन से पता चलता है कि इवेंट की शुरुआत किस शहर से हुई थी. रिपोर्ट के जवाबों में डाइमेंशन की वैल्यू स्ट्रिंग होती हैं. उदाहरण के लिए, शहर "पेरिस" या "न्यूयॉर्क" हो सकता है. अनुरोधों में ज़्यादा से ज़्यादा नौ डाइमेंशन शामिल किए जा सकते हैं.
डाइमेंशन का नाम. runReport और batchRunReports जैसे मुख्य रिपोर्टिंग तरीकों के साथ काम करने वाले डाइमेंशन के नामों की सूची के लिए, एपीआई डाइमेंशन देखें. runRealtimeReport तरीके से काम करने वाले डाइमेंशन के नामों की सूची देखने के लिए, रीयल टाइम डाइमेंशन देखें. runFunnelReport तरीके से काम करने वाले डाइमेंशन के नामों की सूची देखने के लिए, फ़नल डाइमेंशन देखें.
अगर dimensionExpression तय किया गया है, तो name में अनुमति वाले वर्ण सेट में से कोई भी स्ट्रिंग हो सकती है. उदाहरण के लिए, अगर कोई dimensionExpression, country और city को जोड़ता है, तो उस डाइमेंशन को countryAndCity कहा जा सकता है. आपके चुने गए डाइमेंशन के नाम, रेगुलर एक्सप्रेशन ^[a-zA-Z0-9_]$ से मेल खाने चाहिए.
डाइमेंशन का रेफ़रंस, dimensionFilter, orderBys, dimensionExpression, और pivots में name से दिया गया है.
एक डाइमेंशन, कई डाइमेंशन के एक्सप्रेशन का नतीजा हो सकता है. उदाहरण के लिए, डाइमेंशन "देश, शहर": concatenate(country, ", ", city).
DimensionExpression
इसका इस्तेमाल, ऐसे डाइमेंशन को दिखाने के लिए किया जाता है जो कई डाइमेंशन के फ़ॉर्मूला का नतीजा होता है. इस्तेमाल के उदाहरण: 1) lowerCase(dimension) 2) concatenate(dimension1, symbol, dimension2).
JSON के काेड में दिखाना
{// Union field one_expression can be only one of the following:"lowerCase": {object (CaseExpression)},"upperCase": {object (CaseExpression)},"concatenate": {object (ConcatenateExpression)}// End of list of possible types for union field one_expression.}
फ़ील्ड
यूनियन फ़ील्ड one_expression. DimensionExpression के लिए, डाइमेंशन एक्सप्रेशन का एक टाइप तय करें. one_expression इनमें से कोई एक हो सकता है:
इसका इस्तेमाल, डाइमेंशन की वैल्यू को एक डाइमेंशन में जोड़ने के लिए किया जाता है. उदाहरण के लिए, डाइमेंशन "देश, शहर": concatenate(country, ", ", city).
CaseExpression
इसका इस्तेमाल, डाइमेंशन वैल्यू को सिंगल केस में बदलने के लिए किया जाता है.
JSON के काेड में दिखाना
{"dimensionName": string}
फ़ील्ड
dimensionName
string
डाइमेंशन का नाम. नाम, अनुरोध के डाइमेंशन फ़ील्ड में मौजूद नाम से मेल खाना चाहिए.
ConcatenateExpression
इसका इस्तेमाल, डाइमेंशन की वैल्यू को एक डाइमेंशन में जोड़ने के लिए किया जाता है.
JSON के काेड में दिखाना
{"dimensionNames": [string],"delimiter": string}
फ़ील्ड
dimensionNames[]
string
डाइमेंशन के नाम. नामों को अनुरोध के डाइमेंशन फ़ील्ड में मौजूद नामों से जोड़ा जाना चाहिए.
delimiter
string
डाइमेंशन के नामों के बीच में डाला जाने वाला डेलिमिटर.
डेलिमिटर अक्सर "|" या "," जैसे एक वर्ण होते हैं. हालांकि, ये लंबी स्ट्रिंग भी हो सकती हैं. अगर किसी डाइमेंशन वैल्यू में डेलिमिटर शामिल है, तो रिस्पॉन्स में दोनों वैल्यू मौजूद होंगी और उनमें कोई अंतर नहीं होगा. उदाहरण के लिए, अगर डाइमेंशन 1 की वैल्यू = "US,FR", डाइमेंशन 2 की वैल्यू = "JP", और डेलिमिटर = "," है, तो जवाब में "US,FR,JP" शामिल होगा.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-11-22 (UTC) को अपडेट किया गया."],[[["Dimensions represent data attributes, like city or country, and are limited to 9 per request."],["You can create custom dimensions using expressions that manipulate existing dimensions (e.g., lowercase, concatenate)."],["Dimension expressions can combine multiple dimensions with delimiters, such as joining country and city with a comma."],["Dimension names in expressions should refer to existing dimension names defined in the request."],["When using delimiters, ensure they don't clash with values within your dimension data to avoid ambiguity."]]],["This document outlines the structure and usage of dimensions in data reporting, focusing on creating custom dimensions. Dimensions are data attributes, like \"city.\" You can define a `dimension` with a `name` and an optional `dimensionExpression`. `DimensionExpression` allows combining or modifying existing dimensions using `lowerCase`, `upperCase`, or `concatenate` functions. `CaseExpression` changes dimension cases. `ConcatenateExpression` merges dimension values with a specified `delimiter`. Each dimension name is a string with allowed characters.\n"]]