Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[],["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"]]