Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Method: properties.customMetrics.patch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui CustomMetric di properti.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{customMetric.name=properties/*/customMetrics/*}
URL ini menggunakan sintaksis gRPC Transcoding.
Parameter jalur
| Parameter |
customMetric.name |
string
Pengenal. Nama resource untuk resource CustomMetric ini. Format: properties/{property}/customMetrics/{customMetric}
|
Parameter kueri
| Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Kolom yang dihilangkan tidak akan diperbarui. Untuk mengganti seluruh entity, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah comma-separated list berisi nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo".
|
Isi permintaan
Isi permintaan memuat instance CustomMetric.
Isi respons
Jika berhasil, isi respons memuat instance CustomMetric.
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 2026-04-14 UTC.
[null,null,["Terakhir diperbarui pada 2026-04-14 UTC."],[],["This document details updating a CustomMetric on a property using a PATCH request to the specified URL: `https://analyticsadmin.googleapis.com/v1beta/{customMetric.name=properties/*/customMetrics/*}`. The `customMetric.name` is a required path parameter. The `updateMask` query parameter specifies fields to be updated. The request and response bodies both contain an instance of CustomMetric. This action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization.\n"]]