Method: properties.customDimensions.patch
Aktualizuje wymiar niestandardowy w usłudze.
Żądanie HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{customDimension.name=properties/*/customDimensions/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
customDimension.name |
string
Tylko dane wyjściowe. Nazwa zasobu CustomDimension. Format: properties/{property}/customDimensions/{customDimension}
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Wymagane. Lista pól do zaktualizowania. Pominięte pola nie zostaną zaktualizowane. Aby zastąpić cały element, użyj jednej ścieżki z ciągiem znaków „*”, aby dopasować wszystkie pola. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu CustomDimension
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu 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: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["This page details how to update a CustomDimension on a Google Analytics 4 property using the `PATCH` method."],["The request requires specifying the `customDimension.name` as a path parameter and an `updateMask` as a query parameter."],["The request body should contain a `CustomDimension` object with the desired updates."],["A successful response will return the updated `CustomDimension` object."],["To use this API, you need to authorize with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document details updating a CustomDimension on a property using a PATCH request. The URL structure, including path parameters, follows gRPC Transcoding syntax, specifying the CustomDimension's name. A required `updateMask` query parameter determines which fields to modify. The request and response bodies both use the `CustomDimension` resource. Authorization requires the `analytics.edit` OAuth scope. The `Try it!` link enables interactive testing.\n"]]