class PropertiesCustomDimensions extends Resource (View source)

The "customDimensions" collection of methods.

Typical usage is:

 $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
 $customDimensions = $analyticsadminService->properties_customDimensions;

Methods

archive(string $name, GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest $postBody, array $optParams = [])

Archives a CustomDimension on a property. (customDimensions.archive)

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

Creates a CustomDimension. (customDimensions.create)

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

Lookup for a single CustomDimension. (customDimensions.get)

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

Lists CustomDimensions on a property.

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

Updates a CustomDimension on a property. (customDimensions.patch)

Details

GoogleProtobufEmpty archive(string $name, GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest $postBody, array $optParams = [])

Archives a CustomDimension on a property. (customDimensions.archive)

Parameters

string $name

Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678

GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Creates a CustomDimension. (customDimensions.create)

Parameters

string $parent

Required. Example format: properties/1234

GoogleAnalyticsAdminV1betaCustomDimension $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaCustomDimension

Exceptions

Exception

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

Lookup for a single CustomDimension. (customDimensions.get)

Parameters

string $name

Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaCustomDimension

Exceptions

Exception

GoogleAnalyticsAdminV1betaListCustomDimensionsResponse listPropertiesCustomDimensions(string $parent, array $optParams = [])

Lists CustomDimensions on a property.

(customDimensions.listPropertiesCustomDimensions)

Parameters

string $parent

Required. Example format: properties/1234

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaListCustomDimensionsResponse

Exceptions

Exception

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

Updates a CustomDimension on a property. (customDimensions.patch)

Parameters

string $name

Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}

GoogleAnalyticsAdminV1betaCustomDimension $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaCustomDimension

Exceptions

Exception