Method: properties.customMetrics.create
Tworzy dane niestandardowe.
Żądanie HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Przykładowy format: właściwość/1234
|
Treść żądania
Treść żądania zawiera wystąpienie elementu CustomMetric
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję CustomMetric
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-05-06 UTC.
[null,null,["Ostatnia aktualizacja: 2024-05-06 UTC."],[[["Creates a CustomMetric using an HTTP POST request to the specified endpoint."],["Requires `parent` as a path parameter specifying the property (e.g., `properties/1234`)."],["The request body should contain a CustomMetric object, as detailed in the provided link."],["A successful response will return the newly created CustomMetric object."],["Requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This document details how to create a CustomMetric using a POST request to the specified URL: `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics`. The `parent` path parameter is required, formatted as \"properties/1234\". The request body must include a `CustomMetric` instance, and a successful response will return a newly created `CustomMetric` instance. The request requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]