class PropertiesDataStreamsMeasurementProtocolSecrets extends Resource (View source)

The "measurementProtocolSecrets" collection of methods.

Typical usage is:

 $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
 $measurementProtocolSecrets = $analyticsadminService->properties_dataStreams_measurementProtocolSecrets;

Methods

create(string $parent, GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, array $optParams = [])

Creates a measurement protocol secret. (measurementProtocolSecrets.create)

delete(string $name, array $optParams = [])

Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete)

get(string $name, array $optParams = [])

Lookup for a single "GA4" MeasurementProtocolSecret.

listPropertiesDataStreamsMeasurementProtocolSecrets(string $parent, array $optParams = [])

Returns child MeasurementProtocolSecrets under the specified parent Property.

patch(string $name, GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, array $optParams = [])

Updates a measurement protocol secret. (measurementProtocolSecrets.patch)

Details

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret create(string $parent, GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, array $optParams = [])

Creates a measurement protocol secret. (measurementProtocolSecrets.create)

Parameters

string $parent

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete)

Parameters

string $name

Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementPro tocolSecrets/{measurementProtocolSecret}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret get(string $name, array $optParams = [])

Lookup for a single "GA4" MeasurementProtocolSecret.

(measurementProtocolSecrets.get)

Parameters

string $name

Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementPro tocolSecrets/{measurementProtocolSecret}

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret

Exceptions

Exception

GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse listPropertiesDataStreamsMeasurementProtocolSecrets(string $parent, array $optParams = [])

Returns child MeasurementProtocolSecrets under the specified parent Property.

(measurementProtocolSecrets.listPropertiesDataStreamsMeasurementProtocolSecre ts)

Parameters

string $parent

Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse

Exceptions

Exception

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret patch(string $name, GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, array $optParams = [])

Updates a measurement protocol secret. (measurementProtocolSecrets.patch)

Parameters

string $name

Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStrea ms/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaMeasurementProtocolSecret

Exceptions

Exception