Method: properties.setAutomatedGa4ConfigurationOptOut
Đặt trạng thái chọn không sử dụng cho quy trình tự động thiết lập tài sản GA4 cho một tài sản UA. Lưu ý: việc này không ảnh hưởng đến tài sản GA4.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut
URL sử dụng cú pháp Chuyển mã gRPC.
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"property": string,
"optOut": boolean
} |
Trường |
property |
string
Bắt buộc. Tài sản UA để đặt trạng thái chọn không sử dụng. Xin lưu ý rằng yêu cầu này sử dụng mã tài sản nội bộ, chứ không phải mã theo dõi có dạng UA-XXXXXX-YY. Định dạng: properties/{internalWebPropertyId} Ví dụ: properties/1234
|
optOut |
boolean
Trạng thái cần đặt.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]