Method: properties.customDimensions.patch
Memperbarui CustomDimension di properti.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
customDimension.name |
string
Hanya output. Nama resource untuk resource CustomDimension ini. Format: properties/{property}/customDimensions/{customDimension}
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Kolom yang dihilangkan tidak akan diperbarui. Untuk mengganti seluruh entitas, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance CustomDimension
.
Isi respons
Jika berhasil, isi respons memuat instance CustomDimension
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["Updates a specified CustomDimension on a Google Analytics 4 property using an HTTP PATCH request."],["The request should target a URL containing the property and CustomDimension identifiers, using gRPC Transcoding syntax."],["Users must provide an `updateMask` query parameter to specify the fields to update within the CustomDimension."],["The request body must contain a CustomDimension object with the desired changes and the response will contain the updated CustomDimension."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document details updating a CustomDimension on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}`. Required parameters include the `customDimension.name` path parameter and the `updateMask` query parameter, which specifies fields to be updated. The request body contains a CustomDimension instance, and the successful response returns an updated CustomDimension instance. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]