Method: properties.dataStreams.measurementProtocolSecrets.create
Measurement Protocol の Secret を作成します。
HTTP リクエスト
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。このシークレットが作成される親リソース。形式: properties/{property}/dataStreams/{dataStream}
|
リクエスト本文
リクエストの本文には MeasurementProtocolSecret
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された MeasurementProtocolSecret
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/analytics.edit
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-06 UTC。
[null,null,["最終更新日 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"]]