您應在交易訊息中使用 <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>
元素執行下列操作: