Method: properties.customMetrics.create

建立自訂指標。

HTTP 要求

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

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

必要欄位。格式範例:Properties/1234

要求主體

要求主體包含 CustomMetric 的例項。

回應主體

如果成功,回應主體會包含新建立的 CustomMetric 例項。

授權範圍

需要下列 OAuth 範圍:

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