Hint Request メッセージ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
料金フィードを実装する方法の 1 つとして、変更済み料金(旧称: ヒントを使用したプル)を使用する方法があります。
この方法のフローは次のとおりです。
Google は、最新のサーバー更新時刻を含む Hint Request メッセージをルート要素 <HintRequest>
から送信します。
お客様のサーバーは、Hint Response メッセージ <Hint>
で応答します。このメッセージには、前回の更新以降に料金が変更されたホテルのリストが含まれます。
Google は Query メッセージ(<Query>
)で応答します。
お客様のサーバーは、更新されたデータを含むTransaction メッセージ(<Transaction>
)で応答します。
料金更新の概要については、料金更新の手順をご覧ください。
デフォルトでは、Google は 5 分間隔でお客様のサーバーに Hint Request メッセージを送信します。この頻度は、こちらからご連絡いただくことで調整できます。
リクエスト メッセージは、Content-Type
ヘッダーを application/xml
に設定し、User-Agent
ヘッダーを Google-HotelAdsPrices
に設定した HTTP POST
メソッドを使用して送信されます。テクニカル アカウント マネージャー(TAM)に問い合わせて、Google が返すエンドポイントのステータスが OK
であることを確認します。この設定は、Hotel Prices の初期設定時に行われています。
Hint Request の例
Hint Request メッセージには、<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 リファレンスをご覧ください。
All rights reserved. Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eGoogle's Changed Pricing method allows you to update hotel prices efficiently by focusing on changes since the last update.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eGoogle sends Hint Requests every 5 minutes, but this frequency can be adjusted by contacting Google support.\u003c/p\u003e\n"],["\u003cp\u003eHint Requests use HTTP POST with specific headers; ensure endpoint status is "OK" for successful communication.\u003c/p\u003e\n"],["\u003cp\u003eHint Request messages contain the last fetch time, allowing your server to identify price changes since then.\u003c/p\u003e\n"]]],[],null,["# Hint Request Messages\n\nOne way to implement your price feed is to use [Changed Pricing (formerly Pull\nwith Hints)](/hotels/hotel-prices/dev-guide/delivery-mode#hints).\n\nThe flow for this method is as follows:\n\n1. Google sends a Hint Request message from the root element [`\u003cHintRequest\u003e`](../xml-reference/queries#hintrequest)\n that contains time information from your most recent server update.\n\n2. Your server responds with a [Hint Response\n message](/hotels/hotel-prices/dev-guide/hint-response-messages), [`\u003cHint\u003e`](../xml-reference/queries#Hint),\n which contains a list of hotels prices that have changed since\n the last update.\n\n3. Google then responds with a\n [Query message](/hotels/hotel-prices/dev-guide/query-messages): [`\u003cQuery\u003e`](../xml-reference/queries#Query).\n\n4. Your server responds with a\n [Transaction message](/hotels/hotel-prices/dev-guide/transaction-overview),\n [`\u003cTransaction\u003e`](../xml-reference/transaction-messages#Transaction), that includes the updated data.\n\nFor an overview of repricing, see [Repricing\nprocess](/hotels/hotel-prices/dev-guide/updating-prices#repricing-process).\n\nGoogle sends a Hint Request message to your server at 5-minute intervals by\ndefault. This frequency can be adjusted by setting [contact us](https://support.google.com/hotelprices/gethelp).\n\nThe request message is sent using an HTTP `POST` method with the `Content-Type`\nheader set to `application/xml` and the `User-Agent` header set to\n`Google-HotelAdsPrices`. Ensure the endpoint status that Google sends back is `OK` by\ncontacting your Technical Account Manager (TAM). You should have configured this setting during your\nHotel Prices initial setup.\n\n### Hint Request example\n\nHint Request messages have a root element of\n[`\u003cHintRequest\u003e`](../xml-reference/queries#hintrequest) and a single child element, `\u003cLastFetchTime\u003e`. \n\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n \u003cHintRequest id=\"request\" timestamp=\"2023-06-03T22:59:48Z\"\u003e\n \u003cLastFetchTime\u003e\u003cvar translate=\"no\"\u003e2023-06-03T22:54:40Z\u003c/var\u003e\u003c/LastFetchTime\u003e\n \u003c/HintRequest\u003e\n\nFor more examples and additional information, refer to [Query \\& Hints XML Reference](../xml-reference/queries)."]]