提示请求消息
实现价格 Feed 的方法之一是使用价格更改(以前称为“提取并提示”)。
此方法的流程如下所示:
Google 会从根元素 <HintRequest>
发送提示请求消息,其中包含来自您最近一次服务器更新的时间信息。
您的服务器会响应一个 Hint 回应消息 <Hint>
,其中包含自上次更新以来价格发生变化的酒店列表。
然后,Google 会返回一个查询消息:<Query>
。
您的服务器会响应一个包含更新后数据的交易消息 <Transaction>
。
如需简要了解重新定价,请参阅重新定价流程。
默认情况下,Google 会每隔 5 分钟向您的服务器发送一条提示请求消息。您可以通过与我们联系设置来调整此频率。
请求消息使用 HTTP POST
方法发送,其中 Content-Type
标头设置为 application/xml
,User-Agent
标头设置为 Google-HotelAdsPrices
。请与您的技术支持客户经理 (TAM) 联系,确保 Google 发回的端点状态为 OK
。您应该已在酒店价格初始设置期间配置此设置。
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):2025-04-15。
[null,null,["最后更新时间 (UTC):2025-04-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."]]],[]]