提示请求消息
实施价格 Feed 的一种方法是使用价格更改(以前称为“拉取”)
包含提示)。
此方法的流程如下:
Google 从根元素 <HintRequest>
发送“提示请求”消息
包含最近一次服务器更新的时间信息。
您的服务器以 Hint Response 作为响应
消息、<Hint>
、
,其中包含自
最近的更新
然后,Google 会返回
查询消息:<Query>
。
您的服务器会返回
交易消息、
<Transaction>
,其中包含更新后的数据。
有关重新定价的概述,请参阅重新定价
过程。
Google 会每隔 5 分钟向您的服务器发送一条“提示请求”消息,
默认值。可通过设置与我们联系调整此频率。
请求消息使用带有 Content-Type
的 HTTP POST
方法发送
标头设为application/xml
,将User-Agent
标头设为
Google-HotelAdsPrices
。通过以下方法确保 Google 发回的端点状态为 OK
:
联系您的技术支持客户经理 (TAM)。您应该已在
酒店价格初始设置。
Hint 请求示例
Hint 请求消息的根元素为
<HintRequest>
和一个子元素 <LastFetchTime>
。
<?xml version="1.0" encoding="UTF-8"?>
<HintRequest id="request" timestamp="2023-06-03T22:59:48Z">
<LastFetchTime>2023-06-03T22:54:40Z</LastFetchTime>
</HintRequest>
有关更多示例和其他信息,请参阅查询和提示 XML 参考。
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[null,null,["最后更新时间 (UTC):2024-10-15。"],[[["Google's Changed Pricing method allows you to update hotel prices efficiently by focusing on changes since the last update."],["The process involves a Hint Request from Google, a Hint Response from your server with changed hotel IDs, a Query from Google, and a Transaction from your server with updated data."],["Google sends Hint Requests every 5 minutes, but this frequency can be adjusted by contacting Google support."],["Hint Requests use HTTP POST with specific headers; ensure endpoint status is \"OK\" for successful communication."],["Hint Request messages contain the last fetch time, allowing your server to identify price changes since then."]]],[]]