Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
Method: properties.customMetrics.archive
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengarsipkan CustomMetric di properti.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}:archive
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama CustomMetric yang akan diarsipkan. Contoh format: properties/1234/customMetrics/5678
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons adalah objek JSON kosong.
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-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],["This document outlines how to archive a CustomMetric within a property using a POST request. The core action is initiated via a specific URL (`POST https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}:archive`), where the `name` parameter, representing the CustomMetric's identifier, is required within the path. The request body must be empty and the response upon successful completion is an empty JSON object. This operation mandates the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"],null,[]]