Method: properties.adSenseLinks.create
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ พร็อพเพอร์ตี้ที่ใช้สร้างลิงก์ AdSense รูปแบบ: พร็อพเพอร์ตี้/{propertyId} ตัวอย่าง: พร็อพเพอร์ตี้/1234
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AdSenseLink
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ AdSenseLink
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-06 UTC
[null,null,["อัปเดตล่าสุด 2024-05-06 UTC"],[[["Creates a link between a Google Analytics 4 property and an AdSense account."],["Uses an HTTP POST request to the specified endpoint with necessary path parameters and request body."],["Requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."],["Upon successful execution, returns the newly created AdSenseLink object in the response body."]]],["This documentation details creating an AdSenseLink via a POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks`. The `parent` path parameter, specifying the property ID, is required. The request body must contain an `AdSenseLink` instance, and a successful response will include a newly created `AdSenseLink` instance. The process requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope. The document also allows the user to try it.\n"]]