Method: properties.fetchAutomatedGa4ConfigurationOptOut
Tìm nạp trạng thái chọn không sử dụng quy trình tự động thiết lập 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:fetchAutomatedGa4ConfigurationOptOut
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
} |
Trường |
property |
string
Bắt buộc. Tài sản UA để nhận 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
|
Nội dung phản hồi
Thông báo phản hồi để tìm nạp trạng thái chọn không tham gia quy trình thiết lập GA4 tự động.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"optOut": boolean
} |
Trường |
optOut |
boolean
Trạng thái chọn không sử dụng cho tài sản UA.
|
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.readonly
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."],[[["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"]]