Method: properties.customMetrics.get
एचटीटीपी अनुरोध
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. पाने के लिए कस्टममेट्रिक का नाम. फ़ॉर्मैट का उदाहरण: प्रॉपर्टीज़/1234/customMetrics/5678
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में CustomMetric
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इनमें से किसी एक OAuth दायरों की ज़रूरत होती है:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-05-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-05-06 (UTC) को अपडेट किया गया."],[[["Retrieves a single, user-defined metric (CustomMetric) for analysis within a Google Analytics 4 property."],["Requires specifying the complete resource name of the CustomMetric in the request path."],["The response provides comprehensive details about the requested CustomMetric if authorized with appropriate scopes."],["Allows read-only or edit access to the requested metric based on the provided authorization scope."]]],["The core content describes how to retrieve a single `CustomMetric`. A `GET` request is sent to a specified URL using gRPC Transcoding syntax. The `name` parameter, formatted as `properties/*/customMetrics/*`, is required in the URL path. The request body must be empty. A successful response returns a `CustomMetric` instance. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]