Method: properties.conversionEvents.create
เลิกใช้งานแล้ว: ให้ใช้ CreateKeyEvent
แทน สร้างเหตุการณ์ Conversion ด้วยแอตทริบิวต์ที่ระบุ
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/conversionEvents
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อทรัพยากรของพร็อพเพอร์ตี้หลักที่จะสร้างเหตุการณ์ Conversion นี้ รูปแบบ: properties/123
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ConversionEvent
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ ConversionEvent
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 deprecated feature creates conversion events with specified attributes using an HTTP POST request."],["Users must provide the parent property's resource name as a path parameter."],["The request body should contain a ConversionEvent object, as detailed in the provided documentation."],["A successful response will return a newly created ConversionEvent object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document details the process for creating a conversion event using a `POST` request to the Google Analytics Admin API. The request URL requires a `parent` path parameter specifying the property. The request body must contain a `ConversionEvent` instance. A successful request returns a newly created `ConversionEvent` instance in the response body. Authorization requires the `analytics.edit` OAuth scope. It also states this method is deprecated and that `CreateKeyEvent` should be used instead.\n"]]