Method: properties.conversionEvents.create
Không dùng nữa: Chuyển sang dùng CreateKeyEvent
. Tạo một sự kiện chuyển đổi có các thuộc tính đã chỉ định.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/conversionEvents
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
parent |
string
Bắt buộc. Tên tài nguyên của tài sản mẹ nơi sự kiện chuyển đổi này sẽ được tạo. Định dạng: thuộc tính/123
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của ConversionEvent
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới tạo của ConversionEvent
.
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: 2024-08-01 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-01 UTC."],[[["This document details how to create a conversion event with the specified attributes using an HTTP request."],["Creating a conversion event requires `parent` as a path parameter which specifies the parent property."],["The request body should contain an instance of `ConversionEvent` and a successful response will return a newly created instance of `ConversionEvent`."],["This functionality requires `https://www.googleapis.com/auth/analytics.edit` authorization scope."],["**Deprecated:** Use `CreateKeyEvent` instead."]]],["This document details the process for creating a conversion event using a `POST` request to the specified URL. The required path parameter `parent` identifies the property. The request body must contain a `ConversionEvent` instance. Successful execution returns a newly created `ConversionEvent` in the response body. The API endpoint utilizes gRPC Transcoding and the request needs `https://www.googleapis.com/auth/analytics.edit` authorization scope. This method is deprecated, `CreateKeyEvent` is recommended instead.\n"]]