การโอนข้อมูลที่พักของ Google
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ภาพรวม
Google จะแสดงข้อมูลแอตทริบิวต์โรงแรมใน Search และ Maps คุณส่งข้อมูลนี้ไปยัง Google ได้ด้วยรูปแบบที่พักของ Google
หากต้องการส่งข้อมูลที่พักให้ Google คุณจะฝังข้อมูลในฟีดข้อมูลโรงแรม (วิธีที่ต้องการ) หรือตั้งค่าการโอนไฟล์โดยเฉพาะก็ได้ ส่วนต่อไปนี้จะครอบคลุมแต่ละตัวเลือก
ฝังข้อมูลในฟีดข้อมูลโรงแรม
หากมีฟีดข้อมูลโรงแรมอยู่แล้ว คุณจะรวมข้อมูลที่พักไว้ในส่วน <attributes>
ใต้ <client_attr name="lodging">
ได้ ค่าสำหรับแอตทริบิวต์นี้เป็นสตริงที่เข้ารหัสแบบ Base64 ของโปรโต Lodging
ที่เข้ารหัสสำหรับข้อมูล เมื่อใช้วิธีการนี้ ช่อง Lodging.place_id
ควรเป็นรหัสโรงแรมของรายการข้อมูลเฉพาะในฟีด
ข้อมูลอ้างอิงเพิ่มเติม
โปรดดูข้อมูลต่อไปนี้
ตั้งค่าการโอนไฟล์โดยเฉพาะ
หากใส่ข้อมูลที่พักไว้ในรายการข้อมูลโดยตรงไม่ได้
คุณสามารถตั้งค่าการโอนไฟล์ที่โฮสต์แยกต่างหากได้ ข้อมูล Proto Lodging
สามารถจัดรูปแบบเป็น textproto หรือ JSON ก็ได้ การตั้งค่าคล้ายกับฟีดข้อมูลโรงแรมอย่างมาก โปรดติดต่อผู้จัดการลูกค้าด้านเทคนิค (TAM) ของคุณเพื่อขอความช่วยเหลือในการตั้งค่า
สงวนลิขสิทธิ์ Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGoogle uses the Google Lodging Format to display hotel attribute data in Search and Maps.\u003c/p\u003e\n"],["\u003cp\u003eHotels can send their data to Google by embedding it within their hotel list feed or by using a dedicated file transfer.\u003c/p\u003e\n"],["\u003cp\u003eEmbedding data involves placing Base64-encoded Lodging proto within the \u003ccode\u003e<attributes>\u003c/code\u003e section of the hotel list feed, using Hotel ID for \u003ccode\u003eLodging.place_id\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDedicated file transfer is an alternative for hotels unable to embed data directly, requiring separate hosting similar to the hotel listing feed process and TAM assistance.\u003c/p\u003e\n"]]],[],null,["# Google Lodging Data Transfer\n\nOverview\n--------\n\nGoogle shows your hotel attribute data across Search and Maps. You can send\nthis data to Google with the [Google Lodging Format](/hotels/hotel-content/proto-reference/lodging-schema).\n\nTo send Google your lodging data, you can either embed the data in your hotel\nlist feed (preferred method) or set up a dedicated file transfer. The\nfollowing sections cover each option.\n\nEmbed data in your hotel list feed\n----------------------------------\n\nIf you have an existing [hotel list feed](/hotels/hotel-prices/xml-reference/hotel-list-feed),\nyou can include the lodging data in the `\u003cattributes\u003e` section under the\n`\u003cclient_attr name=\"lodging\"\u003e`. The value for this attribute is the\nBase64-encoded string of the encoded `Lodging` proto for the listing. Using\nthis method, the `Lodging.place_id` field should be the Hotel ID of the\nspecific listing entry in your feed.\n\n### Additional references\n\nFor more information, see the following:\n\n- [Hotel list feed attributes](/hotels/hotel-prices/xml-reference/hotel-list-feed#attribute-names)\n\n- [Encoding a proto](/protocol-buffers/docs/encoding)\n\nSet up a dedicated file transfer\n--------------------------------\n\nIf you aren't able to include the lodging data directly in the listing entry,\nyou can set up a separate hosted file transfer. The `Lodging` proto data can be\nformatted as a textproto or JSON. The setup is very similar to that of the\n[hotel listing feed](/hotels/hotel-prices/dev-guide/hlf#hosting-hlf). Contact\nyour technical account manager (TAM) for help setting this up."]]