Hint 要求訊息
如要導入價格動態饋給,其中一種方法是使用「價格變更 (舊稱「提取」)
和提示)。
這個方法的流程如下:
Google 會從根元素 <HintRequest>
傳送提示要求訊息
,其中含有您最近一次伺服器更新的時間資訊。
您的伺服器會傳回提示回應
訊息、<Hint>
、
當中列出自
最後一次更新
接著,Google 會使用
查詢訊息:<Query>
。
您的伺服器會以
交易訊息、
<Transaction>
,其中包含更新的資料。
如需重新定價的總覽,請參閱「重新定價」一節
程序。
Google 會以 5 分鐘的間隔時間,將提示要求訊息傳送至您的伺服器,
預設值。如需調整這個頻率,請設定與我們聯絡。
要求訊息是使用 HTTP POST
方法和 Content-Type
傳送
標頭已設為 application/xml
,User-Agent
標頭已設為
Google-HotelAdsPrices
。確保 Google 傳回的端點狀態為 OK
,方法是:
請與客戶技術顧問 (TAM) 聯絡。您必須在
飯店價格初始設定。
提示要求範例
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 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]