Method: properties.keyEvents.create
Önemli Etkinlik oluşturur.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Bu Önemli Etkinliğin oluşturulacağı üst mülkün kaynak adı. Biçim: özellikler/123
|
İstek içeriği
İstek metni, KeyEvent
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan KeyEvent
örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-05-06 UTC.
[null,null,["Son güncelleme tarihi: 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/v1alpha/{parent=properties/*}/keyEvents`, specifying the parent property in the URL."],["Includes a request body containing the Key Event details as defined in the [KeyEvent](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#KeyEvent) schema."],["Upon successful completion, the response body provides the newly created Key Event instance, also adhering to the [KeyEvent](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#KeyEvent) schema."]]],["A `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents` creates a Key Event. The `parent` path parameter, formatted as `properties/123`, is required. The request body must contain a `KeyEvent` instance. A successful request returns the newly created `KeyEvent` in the response body. The `https://www.googleapis.com/auth/analytics.edit` OAuth scope is necessary for authorization. This API uses gRPC Transcoding syntax.\n"]]