Google Analytics Admin V1beta Client - Class MeasurementProtocolSecret (0.10.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. Human-readable display name for this secret.

Returns
TypeDescription
string

setDisplayName

Required. Human-readable display name for this secret.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this