ก่อนส่งฟีดไปยัง Google คุณตรวจสอบความถูกต้องของฟีดได้ด้วย "เผยแพร่แล้ว" สคีมา
ตารางต่อไปนี้แสดงสคีมาที่พร้อมใช้งานซึ่งคุณใช้ตรวจสอบได้ ฟีดของคุณกับ:
| ดาวน์โหลดสคีมา | วิธีการส่งข้อมูลราคาที่เกี่ยวข้อง | ตำแหน่งของสคีมา |
|---|---|---|
| Hotel List | ทั้งหมด | gstatic.com/localfeed/local_feed.xsd |
| Landing pages | ทั้งหมด | gstatic.com/ads-travel/hotels/api/point_of_sale.xsd |
| Transaction (Property Data) | ARI | gstatic.com/ads-travel/hotels/api/transaction_property_data.xsd |
| Transaction (Property Data) Response | ARI | gstatic.com/ads-travel/hotels/api/transaction_property_data_response.xsd |
| OTA_HotelRateAmountNotifRQ | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rq.xsd |
| OTA_HotelRateAmountNotifRS | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rs.xsd |
| OTA_HotelAvailNotifRQ | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rq.xsd |
| OTA_HotelAvailNotifRS | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rs.xsd |
| OTA_HotelInvCountNotifRQ | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rq.xsd |
| OTA_HotelInvCountNotifRS | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rs.xsd |
| TaxFeeInfo | ARI | gstatic.com/ads-travel/hotels/api/tax_fee_info.xsd |
| TaxFeeInfoResponse | ARI | gstatic.com/ads-travel/hotels/api/tax_fee_info_response.xsd |
| Promotions | ARI | gstatic.com/ads-travel/hotels/api/promotions.xsd |
| PromotionsResponse | ARI | gstatic.com/ads-travel/hotels/api/promotions_response.xsd |
| RateModifications | ARI | gstatic.com/ads-travel/hotels/api/rate_modifications.xsd |
| RateModificationsResponse | ARI | gstatic.com/ads-travel/hotels/api/rate_modifications_response.xsd |
| Transaction | การดึงข้อมูล ราคาที่มีการเปลี่ยนแปลง | gstatic.com/ads-travel/hotels/api/transaction.xsd |
| Rate rules | การดึงข้อมูล ราคาที่มีการเปลี่ยนแปลง | gstatic.com/ads-travel/hotels/api/private_rates.xsd |
| Hint Response | ราคาที่มีการเปลี่ยนแปลง | gstatic.com/ads-travel/hotels/api/hint.xsd |
| Query (from Google to partners) | การดึงข้อมูล ราคาที่มีการเปลี่ยนแปลง การค้นหาราคาแบบเรียลไทม์ | gstatic.com/ads-travel/hotels/api/query.xsd |
วิธีตรวจสอบไฟล์
หากต้องการตรวจสอบไฟล์ด้วยสคีมาเหล่านี้ คุณสามารถใช้เครื่องมือ XML ของบุคคลที่สามได้
เช่น xmllint
ไวยากรณ์สำหรับการใช้ xmllint เพื่อตรวจสอบความถูกต้องของสคีมาคือ
xmllint --schema schema_location file_to_validateตัวอย่างต่อไปนี้จะตรวจสอบความถูกต้องของไฟล์ mypriceupdates.xml กับ
สคีมาข้อความ Transaction
xmllint --schema http://gstatic.com/ads-travel/hotels/api/transaction.xsd mypriceupdates.xmlตัวอย่างต่อไปนี้จะตรวจสอบความถูกต้องของไฟล์ myfeed.xml กับข้อมูลโรงแรม
สคีมาฟีดและแสดงข้อผิดพลาด (หากมี)
xmllint --noout --schema http://gstatic.com/localfeed/local_feed.xsd myfeed.xml