Method: properties.provisionSubproperty
Tạo tài sản phụ và bộ lọc sự kiện của tài sản phụ áp dụng cho tài sản phụ đã tạo.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty
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:
Trường |
subproperty |
object (Property )
Bắt buộc. Tài sản phụ cần tạo.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
Không bắt buộc. Bộ lọc sự kiện của tài sản phụ để tạo trên một tài sản thông thường.
|
Nội dung phản hồi
Thông báo phản hồi cho RPC properties.provisionSubproperty.
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:
Trường |
subproperty |
object (Property )
Tài sản phụ đã tạo.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
Bộ lọc sự kiện của tài sản phụ đã tạo.
|
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."],[[["Provision a new subproperty and an optional subproperty event filter within a Google Analytics property using the `properties.provisionSubproperty` method."],["The request body requires a `subproperty` object and optionally includes a `subpropertyEventFilter` for defining event filtering criteria."],["A successful response returns the created `subproperty` and the `subpropertyEventFilter` if provided."],["This operation requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This content outlines how to provision a subproperty and its event filter using an HTTP POST request. The request, sent to `https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty`, requires a JSON body containing the `subproperty` object and an optional `subpropertyEventFilter` object. Upon success, the response body will include the created `subproperty` and the `subpropertyEventFilter`, as objects. Authorization using the `analytics.edit` scope is required.\n"]]