Hotel Ads Schemas

Before submitting your feeds to Google, you should validate them against their schemas. Use the following links to reference and/or download each schema:

Schema (Download) Schema (Location)
Hint Response http://www.gstatic.com/ads-travel/hotels/api/hint.xsd
Point of Sale http://www.gstatic.com/ads-travel/hotels/api/point_of_sale.xsd
Query Control http://www.gstatic.com/ads-travel/hotels/api/query_control.xsd
Query http://www.gstatic.com/ads-travel/hotels/api/query.xsd
Rate Types http://www.gstatic.com/ads-travel/hotels/api/rate_types.xsd
Transaction http://www.gstatic.com/ads-travel/hotels/api/transaction.xsd
Bids (Hotel Ads only) http://www.gstatic.com/ads-travel/hotels/api/bids.xsd

To validate your files with these schemas, you can use a third-party XML tool such as xmllint.

The syntax for using xmllint to validate a schema is as follows:

$ xmllint --schema schema_location file_to_validate

The following example validates the mypriceupdates.xml file against the Transaction message schema:

$ xmllint --schema http://www.gstatic.com/ads-travel/hotels/api/transaction.xsd mypriceupdates.xml