Method: properties.customDimensions.patch
Aktualisiert eine benutzerdefinierte Dimension in einer Property.
HTTP-Anfrage
PATCH https://analyticsadmin.googleapis.com/v1beta/{customDimension.name=properties/*/customDimensions/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
customDimension.name |
string
Nur Ausgabe. Ressourcenname für diese CustomDimension-Ressource. Format: properties/{property}/customDimensions/{customDimension}
|
Abfrageparameter
Parameter |
updateMask |
string (FieldMask format)
Erforderlich. Die Liste der zu aktualisierenden Felder. Ausgelassene Felder werden nicht aktualisiert. Wenn Sie die gesamte Entität ersetzen möchten, verwenden Sie einen Pfad mit dem String „*“, um alle Felder abzugleichen. Dies ist eine durch Kommas getrennte Liste vollständig qualifizierter Feldnamen. Beispiel: "user.displayName,photo" .
|
Anfragetext
Der Anfragetext enthält eine Instanz von CustomDimension
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von CustomDimension
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-14 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]