新增及更新商品目錄

您應在交易訊息中使用 <Result> 元素,設定或更新房價,並定義可用的房源。這些元素會參照預先定義的資料,使用您在個別交易訊息中定義的中繼資料,說明房型和房型套裝組合。更新目錄取決於遞送模式類型和偏好的頻率。

以下範例顯示 <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,之後所有價格和房源資訊更新都會參照 RoomID。詳情請參閱「定義房間和套件中繼資料」。

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