Method: properties.keyEvents.create
یک رویداد کلیدی ایجاد می کند.
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/keyEvents
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
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 و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["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"]]