Google Analytics · Schema
MeasurementProtocolSecret
A secret value used for sending hits to Measurement Protocol.
AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution
Properties
| Name | Type | Description |
|---|---|---|
| displayName | string | Required. Human-readable display name for this secret. |
| name | string | Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecre |
| secretValue | string | Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-schema/admin-api-measurement-protocol-secret-schema.json",
"title": "MeasurementProtocolSecret",
"description": "A secret value used for sending hits to Measurement Protocol.",
"type": "object",
"properties": {
"displayName": {
"description": "Required. Human-readable display name for this secret.",
"type": "string"
},
"name": {
"description": "Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}",
"readOnly": true,
"type": "string"
},
"secretValue": {
"description": "Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.",
"readOnly": true,
"type": "string"
}
}
}