The "customMetrics" collection of methods.
More...
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| get ($accountId, $webPropertyId, $customMetricId, $optParams=array()) |
| Get a custom metric to which the user has access.
|
|
| insert ($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams=array()) |
| Create a new custom metric.
|
|
| listManagementCustomMetrics ($accountId, $webPropertyId, $optParams=array()) |
| Lists custom metrics to which the user has access.
|
|
| patch ($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams=array()) |
| Updates an existing custom metric.
|
|
| update ($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams=array()) |
| Updates an existing custom metric.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "customMetrics" collection of methods.
Typical usage is: $analyticsService = new Google_Service_Analytics(...); $customMetrics = $analyticsService->customMetrics;
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ get()
Google_Service_Analytics_ManagementCustomMetrics_Resource::get |
( |
| $accountId, |
|
|
| $webPropertyId, |
|
|
| $customMetricId, |
|
|
| $optParams = array() ) |
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 values
-
◆ insert()
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. |
Google_CustomMetric | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ listManagementCustomMetrics()
Google_Service_Analytics_ManagementCustomMetrics_Resource::listManagementCustomMetrics |
( |
| $accountId, |
|
|
| $webPropertyId, |
|
|
| $optParams = array() ) |
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. |
@opt_param int max-results The maximum number of custom metrics to include in this response. @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
- Return values
-
◆ patch()
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. |
Google_CustomMetric | $postBody | |
array | $optParams | Optional parameters. |
@opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
- Return values
-
◆ update()
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. |
Google_CustomMetric | $postBody | |
array | $optParams | Optional parameters. |
@opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Analytics.php