Method: properties.customMetrics.archive
Mengarsipkan CustomMetric di properti.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{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-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["Archives a specified CustomMetric associated with a Google Analytics 4 property."],["Requires an HTTP POST request to a specific endpoint with the CustomMetric's resource name."],["The request body should be empty, and upon success, the response body will also be empty."],["To authorize, you need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["The core action is archiving a CustomMetric, specified by its `name` via a `POST` request to a URL using gRPC Transcoding. The `name`, a string representing the CustomMetric's identifier, is required as a path parameter. The request body must be empty. A successful response returns an empty JSON object. Authorization for this action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The action uses `POST` HTTP request.\n"]]