Method: properties.fetchAutomatedGa4ConfigurationOptOut
Mengambil status keikutsertaan untuk proses penyiapan GA4 otomatis untuk properti UA. Catatan: tindakan ini tidak berpengaruh pada properti GA4.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"property": string
} |
Kolom |
property |
string
Wajib. Properti UA untuk mendapatkan status tidak ikut. Perhatikan bahwa permintaan ini menggunakan ID properti internal, bukan ID pelacakan dalam format UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Contoh: properties/1234
|
Isi respons
Pesan respons untuk mengambil status keikutsertaan untuk proses penyiapan GA4 otomatis.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"optOut": boolean
} |
Kolom |
optOut |
boolean
Status pilihan tidak ikut untuk properti UA.
|
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-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["Fetches the automated GA4 setup opt-out status for a Universal Analytics (UA) property, having no impact on GA4 properties."],["The request requires the internal property ID of the UA property, not the tracking ID."],["The response indicates whether the automated GA4 setup is opted out for the specified UA property."],["Requires authorization with either `analytics.readonly` or `analytics.edit` scope."]]],["The core action is to fetch the opt-out status of a UA property for the automated GA4 setup. This is done via a POST request to `https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut`. The request body requires a JSON object with the `property` field specifying the UA property's internal ID. The response body contains a JSON object with the `optOut` field indicating the property's opt-out status. Two authorization scopes are available:`analytics.readonly` or `analytics.edit`.\n"]]