[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eValidate your hotel data feeds with published schemas before submitting to Google to ensure they are correctly formatted.\u003c/p\u003e\n"],["\u003cp\u003eUse the provided table to find the correct schema based on the type of data feed and pricing delivery mode.\u003c/p\u003e\n"],["\u003cp\u003eUtilize a third-party XML tool like \u003ccode\u003exmllint\u003c/code\u003e along with the schema location to validate your feed files.\u003c/p\u003e\n"],["\u003cp\u003eWhen using \u003ccode\u003exmllint\u003c/code\u003e, ensure you replace \u003ccode\u003ehttps:\u003c/code\u003e with \u003ccode\u003ehttp:\u003c/code\u003e in the schema location URL for proper validation.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided examples for validating against specific schemas like Transaction or Hotel List Feed.\u003c/p\u003e\n"]]],[],null,["# Hotel Ads Schemas\n\nBefore submitting your feeds to Google, you can validate them with published\nschemas.\n\nThe following table lists the available schemas that you can use to validate\nyour feeds against:\n\n| Schema Download | Applicable pricing delivery modes | Schema Location |\n|--------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|--------------------------------------------------------------------------|\n| [Hotel List](https://gstatic.com/localfeed/local_feed.xsd) | All | gstatic.com/localfeed/local_feed.xsd |\n| [Landing pages](https://gstatic.com/ads-travel/hotels/api/point_of_sale.xsd) | All | gstatic.com/ads-travel/hotels/api/point_of_sale.xsd |\n| [Transaction (Property Data)](https://gstatic.com/ads-travel/hotels/api/transaction_property_data.xsd) | ARI | gstatic.com/ads-travel/hotels/api/transaction_property_data.xsd |\n| [Transaction (Property Data) Response](https://gstatic.com/ads-travel/hotels/api/transaction_property_data_response.xsd) | ARI | gstatic.com/ads-travel/hotels/api/transaction_property_data_response.xsd |\n| [OTA_HotelRateAmountNotifRQ](https://gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rq.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rq.xsd |\n| [OTA_HotelRateAmountNotifRS](https://gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rs.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rs.xsd |\n| [OTA_HotelAvailNotifRQ](https://gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rq.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rq.xsd |\n| [OTA_HotelAvailNotifRS](https://gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rs.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rs.xsd |\n| [OTA_HotelInvCountNotifRQ](https://gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rq.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rq.xsd |\n| [OTA_HotelInvCountNotifRS](https://gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rs.xsd) | ARI | gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rs.xsd |\n| [TaxFeeInfo](https://gstatic.com/ads-travel/hotels/api/tax_fee_info.xsd) | ARI | gstatic.com/ads-travel/hotels/api/tax_fee_info.xsd |\n| [TaxFeeInfoResponse](https://gstatic.com/ads-travel/hotels/api/tax_fee_info_response.xsd) | ARI | gstatic.com/ads-travel/hotels/api/tax_fee_info_response.xsd |\n| [Promotions](https://gstatic.com/ads-travel/hotels/api/promotions.xsd) | ARI | gstatic.com/ads-travel/hotels/api/promotions.xsd |\n| [PromotionsResponse](https://gstatic.com/ads-travel/hotels/api/promotions_response.xsd) | ARI | gstatic.com/ads-travel/hotels/api/promotions_response.xsd |\n| [RateModifications](https://gstatic.com/ads-travel/hotels/api/rate_modifications.xsd) | ARI | gstatic.com/ads-travel/hotels/api/rate_modifications.xsd |\n| [RateModificationsResponse](https://gstatic.com/ads-travel/hotels/api/rate_modifications_response.xsd) | ARI | gstatic.com/ads-travel/hotels/api/rate_modifications_response.xsd |\n| [Transaction](https://gstatic.com/ads-travel/hotels/api/transaction.xsd) | Pull, Changed Pricing | gstatic.com/ads-travel/hotels/api/transaction.xsd |\n| [Rate rules](https://gstatic.com/ads-travel/hotels/api/private_rates.xsd) | Pull, Changed Pricing | gstatic.com/ads-travel/hotels/api/private_rates.xsd |\n| [Hint Response](https://gstatic.com/ads-travel/hotels/api/hint.xsd) | Changed Pricing | gstatic.com/ads-travel/hotels/api/hint.xsd |\n| [Query](https://gstatic.com/ads-travel/hotels/api/query.xsd) (from Google to partners) | Pull, Changed Pricing, Live Pricing Query | gstatic.com/ads-travel/hotels/api/query.xsd |\n\n| **Key Point:** Some schemas reference include files with relative paths. Includes with relative paths can be found in the same directory as the file them. For example, `\"tax_fee_info.xsd\"` definition includes `\"common_types.xsd\"` and both of these files can be found in `\"gstatic.com/ads-travel/hotels/api/\"`. Therefore, common_types.xsd can be found at `\"gstatic.com/ads-travel/hotels/api/common_types.xsd\"`.\n\nHow to validate files\n---------------------\n\nTo validate your files with these schemas, you can use a third-party XML tool\nsuch as `xmllint`.\n\nThe syntax for using `xmllint` to validate a schema is as follows: \n\n xmllint --schema \u003cvar translate=\"no\"\u003eschema_location\u003c/var\u003e \u003cvar translate=\"no\"\u003efile_to_validate\u003c/var\u003e\n\n| **Important:** Use `http:` for the \u003cvar translate=\"no\"\u003eschema_location\u003c/var\u003e URL since `xmllint` doesn't support `https:`.\n\nThe following example validates the `mypriceupdates.xml` file against the\nTransaction message schema: \n\n xmllint --schema http://gstatic.com/ads-travel/hotels/api/transaction.xsd mypriceupdates.xml\n\nThe following example validates the `myfeed.xml` file against the Hotel List\nFeed schema and shows errors if they exist: \n\n xmllint --noout --schema http://gstatic.com/localfeed/local_feed.xsd myfeed.xml"]]