Method: properties.customMetrics.create
एचटीटीपी अनुरोध
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. फ़ॉर्मैट का उदाहरण: प्रॉपर्टीज़/1234
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में CustomMetric
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में CustomMetric
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
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) को अपडेट किया गया."],[[["Creates a CustomMetric using an HTTP POST request to the specified endpoint."],["Requires `parent` as a path parameter specifying the property (e.g., `properties/1234`)."],["The request body should contain a CustomMetric object, as detailed in the provided link."],["A successful response will return the newly created CustomMetric object."],["Requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This document details how to create a CustomMetric using a POST request to the specified URL: `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics`. The `parent` path parameter is required, formatted as \"properties/1234\". The request body must include a `CustomMetric` instance, and a successful response will return a newly created `CustomMetric` instance. The request requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]