class ManagementCustomMetrics extends Resource (View source)

The "customMetrics" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $customMetrics = $analyticsService->management_customMetrics;

Methods

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

Get a custom metric to which the user has access. (customMetrics.get)

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

Create a new custom metric. (customMetrics.insert)

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

Lists custom metrics to which the user has access.

patch(string $accountId, string $webPropertyId, string $customMetricId, CustomMetric $postBody, array $optParams = [])

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

update(string $accountId, string $webPropertyId, string $customMetricId, CustomMetric $postBody, array $optParams = [])

Updates an existing custom metric. (customMetrics.update)

Details

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

Get a custom metric to which the user has access. (customMetrics.get)

Parameters

string $accountId

Account ID for the custom metric to retrieve.

string $webPropertyId

Web property ID for the custom metric to retrieve.

string $customMetricId

The ID of the custom metric to retrieve.

array $optParams

Optional parameters.

Return Value

CustomMetric

Exceptions

Exception

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

Create a new custom metric. (customMetrics.insert)

Parameters

string $accountId

Account ID for the custom metric to create.

string $webPropertyId

Web property ID for the custom dimension to create.

CustomMetric $postBody
array $optParams

Optional parameters.

Return Value

CustomMetric

Exceptions

Exception

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

Lists custom metrics to which the user has access.

(customMetrics.listManagementCustomMetrics)

Parameters

string $accountId

Account ID for the custom metrics to retrieve.

string $webPropertyId

Web property ID for the custom metrics to retrieve.

array $optParams

Optional parameters.

Return Value

CustomMetrics

Exceptions

Exception

CustomMetric patch(string $accountId, string $webPropertyId, string $customMetricId, CustomMetric $postBody, array $optParams = [])

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

(customMetrics.patch)

Parameters

string $accountId

Account ID for the custom metric to update.

string $webPropertyId

Web property ID for the custom metric to update.

string $customMetricId

Custom metric ID for the custom metric to update.

CustomMetric $postBody
array $optParams

Optional parameters.

Return Value

CustomMetric

Exceptions

Exception

CustomMetric update(string $accountId, string $webPropertyId, string $customMetricId, CustomMetric $postBody, array $optParams = [])

Updates an existing custom metric. (customMetrics.update)

Parameters

string $accountId

Account ID for the custom metric to update.

string $webPropertyId

Web property ID for the custom metric to update.

string $customMetricId

Custom metric ID for the custom metric to update.

CustomMetric $postBody
array $optParams

Optional parameters.

Return Value

CustomMetric

Exceptions

Exception