Method: properties.setAutomatedGa4ConfigurationOptOut
Hiermit wird der Deaktivierungsstatus für die automatische GA4-Einrichtung für eine UA-Property festgelegt. Hinweis: Dies hat keine Auswirkungen auf die GA4-Property.
HTTP-Anfrage
POST https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut
Die URL verwendet die Syntax der gRPC-Transcodierung.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"property": string,
"optOut": boolean
} |
Felder |
property |
string
Erforderlich. Die UA-Property, für die der Deaktivierungsstatus festgelegt werden soll. Hinweis: In dieser Anfrage wird die interne Property-ID verwendet, nicht die Tracking-ID im Format UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Beispiel: properties/1234
|
optOut |
boolean
Der Status, der festgelegt werden soll.
|
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-14 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-01-14 (UTC)."],[[["This process sets the automated Google Analytics 4 setup opt-out status for a Universal Analytics property, having no effect on GA4 properties."],["The request requires specifying the Universal Analytics property ID and the desired opt-out status (true or false)."],["Successful requests will receive an empty response body."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document details how to set the opt-out status for the automated GA4 setup process for a Universal Analytics (UA) property via a POST HTTP request. The request URL is `https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut`. The request body requires a JSON structure containing the UA property's internal ID and a boolean value (`optOut`) to set the opt-out status. A successful request returns an empty response body, and it requires `analytics.edit` authorization scope.\n"]]