您应在交易消息中使用 <Result>
元素来设置或更新房价,以及定义可用空房。这些元素使用您在单独的 Transaction 消息中定义的元数据引用客房和客房套餐的预定义数据。更新商品目录取决于投放模式的类型和您的首选频率。
以下示例展示了一个 <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>
上面的示例不包含会议室的相关信息,例如说明、图片网址和图片说明、会议室名称或可容纳人数。此类信息可以在最初的 Transaction 消息中发送给 Google,然后 RoomID 可以在所有后续的价格和产品目录更新中引用这些信息。如需了解详情,请参阅定义房间和软件包元数据。
除了定义行程价格之外,您还可以使用 <Result>
元素执行以下操作: