Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
A secret value used for sending hits to Measurement Protocol.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#display_name
defdisplay_name()->::String
Returns
(::String) — Required. Human-readable display name for this secret.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) — Required. Human-readable display name for this secret.
Returns
(::String) — Required. Human-readable display name for this secret.
#name
defname()->::String
Returns
(::String) — Output only. Resource name of this secret. This secret may be a child of any type of
stream.
Format:
properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
#secret_value
defsecret_value()->::String
Returns
(::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret (v0.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.0 (latest)](/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret)\n- [0.10.0](/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret)\n- [0.9.1](/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret) \nReference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.\n\nA secret value used for sending hits to Measurement Protocol. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Human-readable display name for this secret.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Human-readable display name for this secret. \n**Returns**\n\n- (::String) --- Required. Human-readable display name for this secret.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}\n\n### #secret_value\n\n def secret_value() -\u003e ::String\n\n**Returns**\n\n- (::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."]]