新增和更新商品目錄

您應在交易訊息中使用 <Result> 元素來設定或更新房價,並定義可用的廣告空間。這些元素使用您在個別交易訊息中定義的中繼資料,參照會議室和 Room 套裝組合的預先定義資料。更新商品目錄內容,取決於提交模式和您偏好的頻率。

以下範例顯示定義兩個房間庫存和價格的 <Result> 元素:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2023-04-24T16:20:00-04:00" id="42">
  <Result>
    <Property>060773</Property>
    <RoomID>RoomType101</RoomID>
    <Checkin>2023-04-10</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">278.33</Baserate>
    <Tax currency="USD">25.12</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="site1"/>
    </AllowablePointsOfSale>
  </Result>
  <Result>
    <Property>052213</Property>
    <RoomID>RoomType101</RoomID>
    <Checkin>2023-04-17</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">299.98</Baserate>
    <Tax currency="USD">26.42</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="otto"/>
      <PointOfSale id="simon"/>
    </AllowablePointsOfSale>
  </Result>
</Transaction>

上述範例不含客房資訊,例如說明、圖片網址和說明文字、房間名稱或容量。這些資訊可以在初始交易訊息中傳送給 Google,然後在之後的後續價格和商品目錄資訊更新中,Room ID 得以參照。詳情請參閱定義會議室和套件中繼資料

除了定義行程價格,您也可以使用 <Result> 元素執行下列操作: