Class ManagementResource.CustomMetricsResource
The "customMetrics" collection of methods.
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class ManagementResource.CustomMetricsResource
Constructors
CustomMetricsResource(IClientService)
Constructs a new resource.
Declaration
public CustomMetricsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
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. |
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. |
string | accountId | Account ID for the custom metric to create. |
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 |
---|---|---|
string | accountId | Account ID for the custom metrics to retrieve. |
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. |
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. |
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. |
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. |
Returns
Type | Description |
---|---|
ManagementResource.CustomMetricsResource.UpdateRequest |