Method: properties.dataStreams.measurementProtocolSecrets.create
Erstellt ein Measurement Protocol-Secret.
HTTP-Anfrage
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Die übergeordnete Ressource, in der dieses Secret erstellt wird. Format: Properties/{property}/dataStreams/{dataStream}
|
Anfragetext
Der Anfragetext enthält eine Instanz von MeasurementProtocolSecret
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von MeasurementProtocolSecret
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-05-06 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-05-06 (UTC)."],[[["Creates a new measurement protocol secret within a specified Google Analytics 4 property and data stream."],["Uses an HTTP POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets`, with the parent resource defining the property and data stream location."],["Requires `https://www.googleapis.com/auth/analytics.edit` authorization scope for successful execution."],["Includes path parameters and request/response bodies structured according to the MeasurementProtocolSecret object definition."]]],["This document details creating a measurement protocol secret via a `POST` HTTP request to a specific URL using gRPC Transcoding. The URL requires a `parent` path parameter, specifying the data stream within a property. The request body needs a `MeasurementProtocolSecret` instance. A successful response returns a newly created `MeasurementProtocolSecret` instance. Authorization for this action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. Users can interact using a \"Try it!\" feature.\n"]]