Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
Method: properties.dataStreams.measurementProtocolSecrets.get
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mencari satu MeasurementProtocolSecret.
Permintaan HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama secret Measurement Protocol yang akan dicari. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance MeasurementProtocolSecret
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.readonly
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 the process to retrieve a single MeasurementProtocolSecret. A `GET` HTTP request is sent to a specific URL, defined by a `name` parameter in the path. The format of the `name` is provided and is required. The request body must be empty. A successful response will include a `MeasurementProtocolSecret` instance in the response body. The request requires one of two OAuth scopes for authorization: `analytics.readonly` or `analytics.edit`.\n"],null,[]]