Method: properties.setAutomatedGa4ConfigurationOptOut
ตั้งค่าสถานะการไม่ใช้สําหรับกระบวนการตั้งค่า GA4 อัตโนมัติสําหรับพร็อพเพอร์ตี้ UA หมายเหตุ: การดำเนินการนี้ไม่มีผลกับพร็อพเพอร์ตี้ GA4
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut
URL ใช้ไวยากรณ์การแปลง gRPC
เนื้อหาของคำขอ
เนื้อความของคำขอมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"property": string,
"optOut": boolean
} |
ช่อง |
property |
string
ต้องระบุ พร็อพเพอร์ตี้ UA เพื่อตั้งค่าสถานะการเลือกไม่ใช้ โปรดทราบว่าคําขอนี้ใช้รหัสพร็อพเพอร์ตี้ภายใน ไม่ใช่รหัสติดตามในรูปแบบ UA-XXXXXX-YY รูปแบบ: properties/{internalWebPropertyId} ตัวอย่างเช่น properties/1234
|
optOut |
boolean
สถานะที่จะตั้งค่า
|
เนื้อหาการตอบกลับ
หากดำเนินการสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 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"]]