Feed'lerinizi Google'a göndermeden önce yayınlanan şemalarla doğrulayabilirsiniz.
Aşağıdaki tabloda feed'lerinizi doğrulamak için kullanabileceğiniz şemalar listelenmiştir:
Şema (İndir) | Geçerli fiyatlandırma iletim modları | Şema (Konum) |
---|---|---|
Otel Listesi | Tümü | www.gstatic.com/localfeed/local_feed.xsd |
Açılış sayfaları | Tümü | www.gstatic.com/ads-travel/hotels/api/point_of_sale.xsd |
Transaction (Tesis Verileri) | ARI | www.gstatic.com/ads-travel/hotels/api/transaction_property_data.xsd |
Transaction (Tesis Verileri) Yanıtı | ARI | www.gstatic.com/ads-travel/hotels/api/transaction_property_data_response.xsd |
OTA_HotelRateAmountNotifRQ | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rq.xsd |
OTA_HotelRateAmountNotifRS | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_rate_amount_notif_rs.xsd |
OTA_HotelAvailNotifRQ | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rq.xsd |
OTA_HotelAvailNotifRS | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_avail_notif_rs.xsd |
OTA_HotelInvCountNotifRQ | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rq.xsd |
OTA_HotelInvCountNotifRS | ARI | www.gstatic.com/ads-travel/hotels/api/ota_hotel_inv_count_notif_rs.xsd |
TaxFeeInfo | ARI | www.gstatic.com/ads-travel/hotels/api/tax_fee_info.xsd |
TaxFeeInfoResponse | ARI | www.gstatic.com/ads-travel/hotels/api/tax_fee_info_response.xsd |
Tanıtımlar | ARI | www.gstatic.com/ads-travel/hotels/api/promotions.xsd |
PromotionsResponse | ARI | www.gstatic.com/ads-travel/hotels/api/promotions_response.xsd |
Transaction | Çekme, Değiştirilen Fiyatlandırma | www.gstatic.com/ads-travel/hotels/api/transaction.xsd |
Ücret kuralları | Çekme, Değiştirilen Fiyatlandırma | www.gstatic.com/ads-travel/hotels/api/private_rates.xsd |
İpucu Yanıtı | Değiştirilen Fiyatlandırma | www.gstatic.com/ads-travel/hotels/api/hint.xsd |
Sorgu (Google'dan iş ortaklarına) | Çekme, Değiştirilen Fiyatlandırma, Gerçek Zamanlı Fiyatlandırma Sorgusu | www.gstatic.com/ads-travel/hotels/api/query.xsd |
Dosyalarınızı bu şemalarla doğrulamak için xmllint
gibi bir üçüncü taraf XML aracı kullanabilirsiniz.
Şemayı doğrulamak için xmllint
kullanımıyla ilgili söz dizimi aşağıdaki gibidir:
xmllint
tarafından https:
desteklenmediğinden schema_location URL'si için http:
kullanın.
$ xmllint --schema schema_location file_to_validate
Aşağıdaki örnek, mypriceupdates.xml dosyasını Transaction mesajı şemasıyla doğrular:
$ xmllint --schema http://www.gstatic.com/ads-travel/hotels/api/transaction.xsd mypriceupdates.xml
Aşağıdaki örnek, myfeed.xml dosyasını Otel Listesi Feed'i şemasıyla doğrular ve yalnızca var olan hataları gösterir:
$ xmllint --noout --schema http://www.gstatic.com/localfeed/local_feed.xsd myfeed.xml