class ManagementCustomDimensions extends Resource (View source)

The "customDimensions" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $customDimensions = $analyticsService->management_customDimensions;

Methods

get(string $accountId, string $webPropertyId, string $customDimensionId, array $optParams = [])

Get a custom dimension to which the user has access. (customDimensions.get)

insert(string $accountId, string $webPropertyId, CustomDimension $postBody, array $optParams = [])

Create a new custom dimension. (customDimensions.insert)

listManagementCustomDimensions(string $accountId, string $webPropertyId, array $optParams = [])

Lists custom dimensions to which the user has access.

patch(string $accountId, string $webPropertyId, string $customDimensionId, CustomDimension $postBody, array $optParams = [])

Updates an existing custom dimension. This method supports patch semantics.

update(string $accountId, string $webPropertyId, string $customDimensionId, CustomDimension $postBody, array $optParams = [])

Updates an existing custom dimension. (customDimensions.update)

Details

CustomDimension get(string $accountId, string $webPropertyId, string $customDimensionId, array $optParams = [])

Get a custom dimension to which the user has access. (customDimensions.get)

Parameters

string $accountId

Account ID for the custom dimension to retrieve.

string $webPropertyId

Web property ID for the custom dimension to retrieve.

string $customDimensionId

The ID of the custom dimension to retrieve.

array $optParams

Optional parameters.

Return Value

CustomDimension

Exceptions

Exception

CustomDimension insert(string $accountId, string $webPropertyId, CustomDimension $postBody, array $optParams = [])

Create a new custom dimension. (customDimensions.insert)

Parameters

string $accountId

Account ID for the custom dimension to create.

string $webPropertyId

Web property ID for the custom dimension to create.

CustomDimension $postBody
array $optParams

Optional parameters.

Return Value

CustomDimension

Exceptions

Exception

CustomDimensions listManagementCustomDimensions(string $accountId, string $webPropertyId, array $optParams = [])

Lists custom dimensions to which the user has access.

(customDimensions.listManagementCustomDimensions)

Parameters

string $accountId

Account ID for the custom dimensions to retrieve.

string $webPropertyId

Web property ID for the custom dimensions to retrieve.

array $optParams

Optional parameters.

Return Value

CustomDimensions

Exceptions

Exception

CustomDimension patch(string $accountId, string $webPropertyId, string $customDimensionId, CustomDimension $postBody, array $optParams = [])

Updates an existing custom dimension. This method supports patch semantics.

(customDimensions.patch)

Parameters

string $accountId

Account ID for the custom dimension to update.

string $webPropertyId

Web property ID for the custom dimension to update.

string $customDimensionId

Custom dimension ID for the custom dimension to update.

CustomDimension $postBody
array $optParams

Optional parameters.

Return Value

CustomDimension

Exceptions

Exception

CustomDimension update(string $accountId, string $webPropertyId, string $customDimensionId, CustomDimension $postBody, array $optParams = [])

Updates an existing custom dimension. (customDimensions.update)

Parameters

string $accountId

Account ID for the custom dimension to update.

string $webPropertyId

Web property ID for the custom dimension to update.

string $customDimensionId

Custom dimension ID for the custom dimension to update.

CustomDimension $postBody
array $optParams

Optional parameters.

Return Value

CustomDimension

Exceptions

Exception