Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: locations.placeActionLinks.patch
อัปเดตลิงก์การดำเนินการเกี่ยวกับสถานที่ที่ระบุและส่งลิงก์กลับมา
คำขอ HTTP
PATCH https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
placeActionLink.name |
string
ไม่บังคับ ชื่อทรัพยากรในรูปแบบ locations/{locationId}/placeActionLinks/{place_action_link_id} ฟิลด์ชื่อจะได้รับการพิจารณาเฉพาะในคำขอplaceActionLinks.patch และ PlaceActionLinks.delete สำหรับการอัปเดตและลบลิงก์ตามลำดับ แต่ลิงก์ดังกล่าวจะถูกละเว้นในคำขอplaceActionLinks.create โดยเซิร์ฟเวอร์จะกำหนด place_action_link_id เมื่อสร้างลิงก์ใหม่สำเร็จและแสดงผลเป็นส่วนหนึ่งของการตอบกลับ
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ ช่องที่ต้องการให้อัปเดต ช่องที่แก้ไขได้มีเพียง uri , placeActionType และ isPreferred หากลิงก์ที่อัปเดตนั้นมีอยู่แล้วในตําแหน่งเดียวกันโดยมี placeActionType และ uri เดียวกัน ก็จะดำเนินการไม่สำเร็จโดยมีข้อผิดพลาด ALREADY_EXISTS ซึ่งเป็นรายการชื่อฟิลด์ที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ PlaceActionLink
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ PlaceActionLink
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC
[null,null,["อัปเดตล่าสุด 2023-12-01 UTC"],[[["Updates a specified place action link with provided details and returns the updated link."],["Uses the PATCH HTTP request method and requires a `placeActionLink.name` path parameter."],["Requires an `updateMask` query parameter indicating the fields to be updated."],["The request body must contain a `PlaceActionLink` object and a successful response will return the updated `PlaceActionLink` object."],["Requires `https://www.googleapis.com/auth/business.manage` authorization scope for access."]]],["This describes updating a place action link via a `PATCH` request to a specific URL: `https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}`. Key actions include updating fields like `uri`, `placeActionType`, and `isPreferred` using the `updateMask` query parameter. The `placeActionLink.name` path parameter is necessary for identifying the link to modify. The request and response body use the `PlaceActionLink` resource. This operation requires `https://www.googleapis.com/auth/business.manage` authorization scope.\n"]]