新增和更新商品目錄

您應使用 <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> 元素來執行下列操作: