Method: properties.keyEvents.create
एचटीटीपी अनुरोध
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/keyEvents
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. उस पैरंट प्रॉपर्टी के संसाधन का नाम जहां यह मुख्य इवेंट बनाया जाएगा. फ़ॉर्मैट: प्रॉपर्टीज़/123
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में KeyEvent
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में KeyEvent
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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 new Key Event within a specified Google Analytics 4 property."],["Requires `https://www.googleapis.com/auth/analytics.edit` authorization scope for execution."],["Utilizes an HTTP POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/keyEvents`, including property ID in the path."],["Request body should contain a KeyEvent object as defined in the provided documentation link, leading to the creation of the Key Event."],["Successful response returns the newly created KeyEvent object."]]],["This document details how to create a Key Event using a `POST` request to the specified URL. The URL, using gRPC Transcoding, includes a required `parent` path parameter representing the property. The request body must contain a `KeyEvent` instance. Successful requests return a newly created `KeyEvent` in the response body. Authorization requires the `analytics.edit` OAuth scope. The content also mentions HTTP requests, path parameters, request and response bodies, and includes a \"Try it!\" feature.\n"]]