Method: properties.customMetrics.create

创建自定义指标。

HTTP 请求

POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。示例格式:properties/1234

请求正文

请求正文包含一个 CustomMetric 实例。

响应正文

如果成功,响应正文将包含一个新创建的 CustomMetric 实例。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/analytics.edit