添加和更新广告资源

您应在交易消息中使用 <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> 元素执行以下操作: