Google Analytics Admin V1beta Client - Class MeasurementProtocolSecret (0.22.4)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class MeasurementProtocolSecret.

A secret value used for sending hits to Measurement Protocol.

Generated from protobuf message google.analytics.admin.v1beta.MeasurementProtocolSecret

Namespace

Google \ Analytics \ Admin \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ 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/{measurementProtocolSecret}

↳ display_name string

Required. Human-readable display name for this secret.

↳ secret_value 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.

getName

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}

Returns
Type Description
string

setName

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}

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. Human-readable display name for this secret.

Returns
Type Description
string

setDisplayName

Required. Human-readable display name for this secret.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretValue

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.

Returns
Type Description
string

setSecretValue

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.

Parameter
Name Description
var string
Returns
Type Description
$this