Method: properties.customDimensions.create
Tworzy wymiar niestandardowy.
Żądanie HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions
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 CustomDimension
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję CustomDimension
.
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 new CustomDimension within a specified Google Analytics 4 property."],["Requires `https://www.googleapis.com/auth/analytics.edit` authorization scope for execution."],["Utilizes an HTTP POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions`, accepting a CustomDimension object in the request body."],["If successful, the response returns the newly created CustomDimension object."]]],["A `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions` creates a CustomDimension. The `parent` path parameter, formatted as `properties/1234`, is required. The request body must include a `CustomDimension` instance. Upon success, a newly created `CustomDimension` instance is returned in the response. This action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization.\n"]]