Bevor Sie Ihre Feeds an Google senden, können Sie sie mit veröffentlichten Schemas validieren.
In der folgenden Tabelle sind die verfügbaren Schemas aufgeführt, mit denen Sie Ihre Feeds validieren können:
| Schema herunterladen | Anwendbare Übermittlungsmodi für Preise | Speicherort des Schemas |
|---|---|---|
| Hotel List | Alle | gstatic.com/localfeed/local_feed.xsd |
| Landing pages | Alle | 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 | Pull-Preise, geänderte Preise | gstatic.com/ads-travel/hotels/api/transaction.xsd |
| Rate rules | Pull-Preise, geänderte Preise | gstatic.com/ads-travel/hotels/api/private_rates.xsd |
| Hint Response | Geänderte Preise | gstatic.com/ads-travel/hotels/api/hint.xsd |
| Query (from Google to partners) | Pull-Preise, geänderte Preise und Livepreisabfrage | gstatic.com/ads-travel/hotels/api/query.xsd |
Dateien validieren
Wenn Sie Ihre Dateien mit diesen Schemas validieren möchten, können Sie ein XML-Tool eines Drittanbieters wie xmllint verwenden.
Wenn Sie xmllint zur Validierung eines Schemas verwenden, lautet die Syntax so:
xmllint --schema schema_location file_to_validateIm folgenden Beispiel wird die Datei mypriceupdates.xml anhand des Transaktionsnachrichtenschemas validiert:
xmllint --schema http://gstatic.com/ads-travel/hotels/api/transaction.xsd mypriceupdates.xmlIm folgenden Beispiel wird die Datei myfeed.xml mit dem Schema für Hotellistenfeeds validiert und es werden vorhandene Fehler angezeigt:
xmllint --noout --schema http://gstatic.com/localfeed/local_feed.xsd myfeed.xml