Method: properties.googleAdsLinks.patch
อัปเดต GoogleAdsLink ในพร็อพเพอร์ตี้
คำขอ HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
googleAdsLink.name |
string
เอาต์พุตเท่านั้น รูปแบบ: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} หมายเหตุ: googleAdsLinkId ไม่ใช่รหัสลูกค้า Google Ads
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการช่องที่จะอัปเดต ชื่อช่องต้องอยู่ในรูปแบบ Snake Case (เช่น "field_to_update") ระบบจะไม่อัปเดตช่องที่ละเว้น หากต้องการแทนที่เอนทิตีทั้งหมด ให้ใช้เส้นทางเดียวที่มีสตริง "*" เพื่อจับคู่กับทุกช่อง ซึ่งเป็นรายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ GoogleAdsLink
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GoogleAdsLink
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["Updates a GoogleAdsLink on a specified Google Analytics 4 property."],["The request must include an update mask specifying the fields to be updated."],["Requires `analytics.edit` scope for authorization."],["The API uses PATCH method and gRPC Transcoding syntax for the request URL."],["Both request and response bodies utilize the `GoogleAdsLink` object."]]],["This document details updating a GoogleAdsLink on a property using a PATCH HTTP request to `https://analyticsadmin.googleapis.com/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}`. The `googleAdsLink.name` path parameter specifies the target link. The `updateMask` query parameter, using a FieldMask format, dictates which fields to modify. The request body contains the `GoogleAdsLink` instance, and a successful response also returns a `GoogleAdsLink` instance. Editing requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]