Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: locations.updateLodging
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดตที่พักของสถานที่ที่ต้องการ
คำขอ HTTP
PATCH https://mybusinesslodging.googleapis.com/v1/{lodging.name=locations/*/lodging}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
lodging.name |
string
ต้องระบุ ตัวระบุ Google สำหรับสถานที่ตั้งนี้ในรูปแบบ: locations/{locationId}/lodging
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ ช่องที่ต้องการให้อัปเดต ใช้ "*" เพื่ออัปเดตทุกช่อง ซึ่งอาจรวมถึงการยกเลิกการตั้งค่าช่องว่างในคำขอ รายการช่องที่ซ้ำไม่สามารถอัปเดตทีละรายการได้ ซึ่งเป็นรายการชื่อฟิลด์ที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Lodging
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Lodging
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThis documentation outlines the process for updating lodging information for a specific location using the \u003ccode\u003ePATCH\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eIt requires providing the lodging's Google identifier in the URL path and specifying the fields to be updated using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated Lodging data, and a successful response will return the updated Lodging object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization using the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e scope is required.\u003c/p\u003e\n"]]],["This describes updating a specific lodging location using a `PATCH` request to the provided URL. The `lodging.name` path parameter, a Google identifier, is required. The `updateMask` query parameter, also required, specifies which fields to modify. The request body holds the `Lodging` instance with updated data, and upon success, the response body returns the updated `Lodging`. The process needs an `OAuth` scope and uses gRPC Transcoding.\n"],null,["# Method: locations.updateLodging\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nUpdates the Lodging of a specific location.\n\n### HTTP request\n\n`PATCH https://mybusinesslodging.googleapis.com/v1/{lodging.name=locations/*/lodging}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------|\n| `lodging.name` | `string` Required. Google identifier for this location in the form: `locations/{locationId}/lodging` |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` Required. The specific fields to update. Use \"\\*\" to update all fields, which may include unsetting empty fields in the request. Repeated field items cannot be individually updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Lodging](/my-business/reference/lodging/rest/v1/Lodging).\n\n### Response body\n\nIf successful, the response body contains an instance of [Lodging](/my-business/reference/lodging/rest/v1/Lodging).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]