# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret (v0.11.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.11.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret)
- [0.10.0](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-MeasurementProtocolSecret)
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

    def display_name() -> ::String

**Returns**

- (::String) --- Required. Human-readable display name for this secret.

### #display_name=

    def display_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

    def name() -> ::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

    def secret_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.