Method: properties.dataStreams.measurementProtocolSecrets.create
Measurement Protocol gizli anahtarı oluşturur.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Bu gizli anahtarın oluşturulacağı üst kaynak. Biçim: mülkler/{property}/dataStreams/{dataStream}
|
İstek içeriği
İstek metni, MeasurementProtocolSecret
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan MeasurementProtocolSecret
ö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 measurement protocol secret associated with a specific Google Analytics 4 property and data stream."],["The request requires specifying the parent resource (property and data stream) and a request body containing the measurement protocol secret details."],["Upon successful execution, the API returns the newly created measurement protocol secret."],["Users need to have the `analytics.edit` scope to authorize this operation."]]],["This document outlines how to create a measurement protocol secret using a `POST` HTTP request to the specified URL, `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets`. The `parent` path parameter, formatted as `properties/{property}/dataStreams/{dataStream}`, is mandatory. The request body must include a `MeasurementProtocolSecret` instance. A successful request returns a newly created `MeasurementProtocolSecret` instance. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]