힌트 요청 메시지
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
가격 피드를 구현하는 한 가지 방법은 변동된 가격 (이전의 힌트 포함 가져오기)을 사용하는 것입니다.
이 메서드의 흐름은 다음과 같습니다.
Google은 루트 요소 <HintRequest>
에서 가장 최근 서버 업데이트의 시간 정보가 포함된 힌트 요청 메시지를 전송합니다.
서버는 마지막 업데이트 이후 변경된 호텔 가격 목록이 포함된 힌트 응답 메시지 <Hint>
로 응답합니다.
그러면 Google에서 쿼리 메시지 <Query>
로 응답합니다.
서버는 업데이트된 데이터가 포함된 거래 메시지 <Transaction>
로 응답합니다.
가격 재조정에 관한 개요는 가격 재조정 절차를 참고하세요.
Google은 기본적으로 5분 간격으로 힌트 요청 메시지를 서버로 전송합니다. 이 빈도는 Google에 문의를 설정하여 조정할 수 있습니다.
요청 메시지는 Content-Type
헤더가 application/xml
로 설정되고 User-Agent
헤더가 Google-HotelAdsPrices
로 설정된 HTTP POST
메서드를 사용하여 전송됩니다. 기술계정 관리자 (TAM)에게 문의하여 Google에서 다시 전송하는 엔드포인트 상태가 OK
인지 확인합니다. 호텔 가격 초기 설정 중에 이 설정을 구성했어야 합니다.
힌트 요청 예시
힌트 요청 메시지에는 루트 요소 <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. 자바는 Oracle 및/또는 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)."]]