Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
Method: properties.dataStreams.updateDataRedactionSettings
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui DataRedactionSettings di properti.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{dataRedactionSettings.name=properties/*/dataStreams/*/dataRedactionSettings}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
dataRedactionSettings.name |
string
Hanya output. Nama resource Setelan Penyamaran Data ini. Format: properties/{property_id}/dataStreams/{dataStream}/dataRedactionSettings Contoh: "properties/1000/dataStreams/2000/dataRedactionSettings"
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Nama kolom harus menggunakan format snake case (misalnya, "field_to_update"). Kolom yang dihapus tidak akan diperbarui. Untuk mengganti seluruh entity, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah daftar yang dipisahkan koma yang berisi nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance DataRedactionSettings
.
Isi respons
Jika berhasil, isi respons akan berisi instance DataRedactionSettings
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
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-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["Updates a DataRedactionSettings on a property using a `PATCH` request to a specific URL with gRPC Transcoding syntax."],["The request requires specifying `dataRedactionSettings.name` as a path parameter and `updateMask` as a query parameter."],["The request body and successful response body both contain a DataRedactionSettings instance."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines how to update `DataRedactionSettings` on a property using a PATCH request. The request URL uses gRPC Transcoding syntax and includes a path parameter `dataRedactionSettings.name`. The `updateMask` query parameter specifies which fields to update. The request and response bodies use the `DataRedactionSettings` instance. Authorization requires the `analytics.edit` OAuth scope. A \"Try it!\" button is provided for testing.\n"]]