###### tags: Webjet # Google Hotels: Adding NZ ## Task Breakdown of tasks involved in extending Google Hotels integration to New Zealand hotels and customers. - Support adding NZ hotels to Google - Redirection of NZ google users to webjet.co.nz --- ## Implementation ### Adding support for NZ Hotels - Task 1: Manually add the Google Hotel ID (WebjetAreaID-WebjetHotelID-AreaName) to the Hotel list for all NZ Hotels to be added. That should be everything - once the NZ Hotels are in Google Hotels Centre and correctly matching, Google will start sending us price requests for those hotels. The microservice, GoogleTravelProvider does not need to be modified at all to serve these requests, as Availability service AU can handle requests for NZ hotels. Note - GoogleTravelProvider will still return prices in AUD but this is a non-issue as ### Adding support for NZ Google users - Task 1: Adding a redirection url that matches against NZ-based google users This just involves modifying the .xml landing page template that we have uploaded to Google Hotels Centre. This should be a quick and easy task - the redirection url for AU customers can be copied and pasted and modified with the NZ extension The matching criteria can then be changed from AU -> NZ. This means that Webjet will now appear on hotel listings for NZ-based customers who shop in NZD This way, the flow for a NZ customer from Google will be as follows: 1. Visit google.com/hotels 2. Find a hotel - Webjet is listed as a provider - price is listed in NZD 3. Click the link - land on the hotel results page on webjet.co.nz with the featured hotel, price is also listed in NZD ## Potential issues ### Currency convesion #### Q: Does the currency that hotel price is supplied to Google matter? A: No - currency conversion happens on Googles' end. Google does not send a currency with it's pricing requests. Google only expects us to label our pricing responses with the associated currency (AUD in our case as supplied from Availability AU). A Google user is able to select from a long list of currencies to display prices in on Google Hotels. Clearly, Google must be handling the currency conversion as it is extremely likely that all travel providers can supply prices in all of these currencies. ![](https://i.imgur.com/uXo54lU.png) When changing the selected currency on Google, the hotel providers are all still present: ![](https://i.imgur.com/m4OEu5O.png) ![](https://i.imgur.com/aM0DYg8.png) ### Pricing mismatch Due to Google handling currency conversion on their end, there may be a price mismatch between the price displayed on Google and the price displayed on Webjet NZ. #### Google price flow (NZD): -> Price request to GoogleHotelsTravelProvider -> Call to *Availability AU* -> *Availability AU* returns a price in AUD -> Google does a conversion to NZD for NZ customers. #### Webjet.co.nz price flow (NZD): -> Call to *Availability NZ* -> *Availability NZ* returns price in NZD As a result, the price that a NZ Google customer sees on Google may differ from what they are shown on Webjet.co.nz. This may be problematic if the price displayed on Webjet NZ is higher than what Google displays. #### Potential solution In order to be consistent between what is displayed on Webjet.co.nz and Google, the only solution would be to send back prices in NZD (and call Availability NZ) when Google requests prices for NZ hotels from GoogleTravelProvider. This way, the NZD price for Google customers would be consistent, as both microservices will get their prices from the same source. This would be an arduous task though, as: - GoogleHotelsProvider can only send back one price to Google for any itinerary (regardless of the Google user's location) as Google does not specify a currency to respond to their pricing requests in. - Logic needs to be added to GoogleHotelsProvider to determine the location of the hotel the price is being requested for. - GoogleHotelsProvider will now need to make calls to Availability AU and Availability NZ Cons: - If the price being returned for NZ hotels is adjusted to NZD, then this gives rise to the same problem again. AUS customers may experience a price mismatch between the price displayed on Google and Webjet.com.au for NZ hotels