Class ManagementResource.CustomMetricsResource
The "customMetrics" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class CustomMetricsResource
Constructors
CustomMetricsResource(IClientService)
Constructs a new resource.
Declaration
public CustomMetricsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| Google.Apis.Services.IClientService | service |
Methods
Get(String, String, String)
Get a custom metric to which the user has access.
Declaration
public virtual ManagementResource.CustomMetricsResource.GetRequest Get(string accountId, string webPropertyId, string customMetricId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | accountId | Account ID for the custom metric to retrieve. |
| System.String | webPropertyId | Web property ID for the custom metric to retrieve. |
| System.String | customMetricId | The ID of the custom metric to retrieve. |
Returns
| Type | Description |
|---|---|
| ManagementResource.CustomMetricsResource.GetRequest |
Insert(CustomMetric, String, String)
Create a new custom metric.
Declaration
public virtual ManagementResource.CustomMetricsResource.InsertRequest Insert(CustomMetric body, string accountId, string webPropertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomMetric | body | The body of the request. |
| System.String | accountId | Account ID for the custom metric to create. |
| System.String | webPropertyId | Web property ID for the custom dimension to create. |
Returns
| Type | Description |
|---|---|
| ManagementResource.CustomMetricsResource.InsertRequest |
List(String, String)
Lists custom metrics to which the user has access.
Declaration
public virtual ManagementResource.CustomMetricsResource.ListRequest List(string accountId, string webPropertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | accountId | Account ID for the custom metrics to retrieve. |
| System.String | webPropertyId | Web property ID for the custom metrics to retrieve. |
Returns
| Type | Description |
|---|---|
| ManagementResource.CustomMetricsResource.ListRequest |
Patch(CustomMetric, String, String, String)
Updates an existing custom metric. This method supports patch semantics.
Declaration
public virtual ManagementResource.CustomMetricsResource.PatchRequest Patch(CustomMetric body, string accountId, string webPropertyId, string customMetricId)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomMetric | body | The body of the request. |
| System.String | accountId | Account ID for the custom metric to update. |
| System.String | webPropertyId | Web property ID for the custom metric to update. |
| System.String | customMetricId | Custom metric ID for the custom metric to update. |
Returns
| Type | Description |
|---|---|
| ManagementResource.CustomMetricsResource.PatchRequest |
Update(CustomMetric, String, String, String)
Updates an existing custom metric.
Declaration
public virtual ManagementResource.CustomMetricsResource.UpdateRequest Update(CustomMetric body, string accountId, string webPropertyId, string customMetricId)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomMetric | body | The body of the request. |
| System.String | accountId | Account ID for the custom metric to update. |
| System.String | webPropertyId | Web property ID for the custom metric to update. |
| System.String | customMetricId | Custom metric ID for the custom metric to update. |
Returns
| Type | Description |
|---|---|
| ManagementResource.CustomMetricsResource.UpdateRequest |