Room Bundles

Room Bundles let you define multiple room types for a single property, or combine an itinerary of a room with additional services and conditions of sale to your users beyond a standard price.

Key concepts and workflow

With Room Bundles, you can offer additional combinations of physical room types with different service packages.

The following image shows examples of Room Bundles:

In this example, the first bundle is likely the base room, with a discount for only one adult occupant. The second is a different room type which is available for upto 3 adult occupants. The third is another room type within the same property. The fourth is a "premium" package of the base room, which might include amenities such as free breakfast or a later checkout.

Displaying Room Bundles in search results is governed by the same selection process as standard room rates. For information about the benefits of Room Bundles, see Using Room Bundles to boost performance.

Defining Room Bundles

You define Room Bundles in Transaction messages. The structure of the Transaction message depends on what you are doing: defining the metadata about the Room Bundle or updating the Room Bundle's pricing/availability.

Metadata: To define Room Bundle metadata, use a <PackageData> element inside a <PropertyDataSet> element to define metadata about the Room Bundle. For more information, see Defining room and package metadata. Room Bundles use existing <RoomData> elements for their physical room descriptions.

Pricing and availability: To define Room Bundle pricing and availability, use a <RoomBundle> element inside the <Result> element of a Transaction message for each package/itinerary combination. For more information, see Defining pricing and availability.

Room Bundle metadata

When defining Room Bundles, you typically define the description, amenities, and other information about the Room Bundle ahead of time. This information is known as the Room Bundle metadata. You then reference this metadata in your pricing updates, but don't include it in the pricing update messages.

When you define Room Bundles, use existing <RoomData> elements for the physical room descriptions and <PackageData> elements for the amenities and terms that are not part of the physical room description.

Using the <RoomData> and <PackageData> elements can significantly reduce the size of your Hotel List Feed and Hotel Price Feed because it reduces the amount of repetitive data sent in Transaction messages.

For example, data such as a room name and description is typically repeated for every itinerary. You can use the <RoomData> and <PackageData> elements to define this type of data once. Itinerary-specific Room Bundle data is then merged with the stored room and package definitions for display to the end user.

Google matches your metadata with your itinerary-specific data to render the contents of your ads. There is special processing to combine the names and descriptions from the <RoomData> and <PackageData> elements, allowing the physical room to be described in <RoomData> and package details to be in <PackageData>.

If you define both the room data and package data for a single room or Room Bundle, Google includes both in the ad output, separated by a hyphen.

Data precedence

Room Bundle data is gathered from all sources and combined, using precedence rules, to produce the final data for a given hotel, itinerary, and Room Bundle. The ordering is as follows, from lowest to highest precedence:

  • <PartnerData>
  • <PropertyData>
  • <RoomData>, where the <RoomID> matches the <RoomID> in the <RoomBundle> block
  • <PackageData>, where the <PackageID> matches the <PackageID> in the <RoomBundle> block
  • <RoomBundle>

Defining pricing and availability

To define Room Bundle pricing and availability, use a <RoomBundle> element in a Transaction message for each package/itinerary combination. The <RoomBundle> element should be inside the <Result> element.

The following shows the syntax for defining Room Bundle pricing and availability:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="transaction_timestamp" id="transaction_id">
 <Result>
   <Property>hotel_id</Property>
   <Checkin>check-in_date</Checkin>
   <Nights>number_of_nights</Nights>
   <Baserate currency="currency_code">price</Baserate>
   <Tax currency="currency_code">taxes</Tax>
   <OtherFees currency="currency_code">other_fees</OtherFees>
   <ChargeCurrency>charge_currency</ChargeCurrency>
   <Custom1>customer_value_1</Custom1>
   <AllowablePointsOfSale>
      <PointOfSale id="POS_id"/>
   </AllowablePointsOfSale>
   <RoomBundle>
      <!-- Required (in bold) -->
      <!-- Use RoomID and PackageID to reference room/package metadata (more efficient) -->
      <RoomID>room_ID</roomID>
      <PackageID>package_ID</packageID>

      <Occupancy>intended_number_of_occupants_for_package</Occupancy>
      <RatePlanID>rate_plan_ID</RatePlanID>

      <!-- Required -->
      <Baserate currency="currency_code">price</Baserate>

      <!-- Required -->
      <Tax currency="currency_code">taxes</Tax>

      <!-- Required -->
      <OtherFees currency="currency_code">other_fees</OtherFees>

      <!-- Custom values are used as parameters you may need for the POS -->
      <Custom1>custom_value_1</Custom1>
      <Custom2>custom_value_2</Custom2>
      <Custom3>custom_value_3</Custom3>
      <Custom4>custom_value_4</Custom4>
      <Custom5>custom_value_5</Custom5>
  </RoomBundle>
  ...
 </Result>
 ...
</Transaction>

The following table describes the child elements of the <RoomBundle> element:

Element Required Description
<Baserate> Required Defines the price of the room for the stay. The value of this tag should reflect the following:

  • The least expensive double-occupancy rate that you offer. The value cannot exceed 20,000 USD.
  • The room must be private; shared rooms are not considered at this time.
  • The total length of a stay, not the average nightly rate.

When the room is unavailable for the itinerary, remove the <RoomBundle> element to indicate that a room is no longer in inventory. For more information, see the instructions in Updating Room Bundles.

The <Baserate> element takes the following optional attributes:

  • all_inclusive: A Boolean that indicates if this rate includes taxes and fees. In general, set this value to "false" for US and Canadian end-users and supply values for the <Tax> and <OtherFees> elements. If you use all-inclusive prices, you may not be eligible to appear in the listings if your prices do not separate out taxes and fees for US and Canadian users.

    For all other end-users, you typically include the taxes and fees in the base rate and set the value of the all_inclusive attribute to true. For more information, see Taxes and Fees Policy.

    The default value is false.

  • currency: The 3-digit currency code. For example, "USD" for US dollars.
<Occupancy> Required Defines the maximum number of guests that a Room Bundle is intended for. For example, a large suite might be able to physically accommodate six guests, but the "Honeymoon Package" is intended for two guests only.

This value must be less than or equal to the Room Data's <Capacity>, which is the number of people that the room can physically accommodate.

When setting the occupancy in a Points of Sale file, use the NUM-ADULTS attribute, as described in Building Dynamic POS URLs. The default value is "2".

The value of <Occupancy> must be a positive integer between 1 and 20, inclusive.

<OtherFees> Required Defines fees other than the base rate and taxes that influence the final price of a room. The <OtherFees> element takes a single required attribute, currency, that defines the three-digit currency code for the fees. For example, "USD".
<PackageID> Required Specifies the unique ID for the package data. Use this ID to match the Room Bundle data with what was sent in the <PropertyDataSet> blocks in your property updates. For more information, see Room Bundle metadata. (You can also use this ID to reference a common Room Bundle definition used in a single Transaction message when defining Room Bundle data inline.)
<RatePlanID> Optional Specifies a value that can then be used by the Points of Sale file to construct a custom URL for a Point of Sale (POS). For more information, see <Result> element.
<RoomID> Required Specifies the unique ID for the room data. Use this ID to match the Room Bundle data with what was sent in the <PropertyDataSet> blocks in your property updates. For more information, see Room Bundle metadata. (You can also use this ID to reference a common room definition in a single Transaction message when defining room data inline.)
<Tax> Required Defines the taxes that are calculated for the final price of a room. The <Tax> element takes a single required attribute, currency, that defines the three-digit currency code for the taxes. For example, "USD".
<Custom[1-5]> Optional Defines a custom field that you can use to pass additional data associated with a hotel. You can pass up to five custom values with the following element names:
  • <Custom1>
  • <Custom2>
  • <Custom3>
  • <Custom4>
  • <Custom5>

The <Custom> elements let you pass arbitrary data. For example, you can specify a value in this field that will then be used by the Points of Sale file to construct a custom URL for a Point of Sale.

For more information, see Points of Sale Files.

The following example defines the pricing for two Room Bundles for the given itinerary (a 2-night check-in starting on 6/7/15):

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2015-04-24T20:44:56-04:00" id="42">
  <Result>
    <Property>1234</Property>
    <Checkin>2015-06-07</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">199.99</Baserate>
    <Tax currency="USD">25.12</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="bookingsite1.com"/>
    </AllowablePointsOfSale>

    <!-- Base Rate Room Bundle -->
    <RoomBundle>
      <RoomID>single</RoomID>
      <!-- Price for 2 ("occupancy") -->
      <Baserate currency="USD">199.99</Baserate>
      <Tax currency="USD">25.12</Tax>
      <OtherFees currency="USD">10.00</OtherFees>
    </RoomBundle>

    <!-- Premium Room Bundle -->
    <RoomBundle>
      <RoomID>single</RoomID>
      <PackageID>refundbreakfast</PackageID>
      <!-- Price for 2 ("occupancy") -->
      <Baserate currency="USD">298.88</Baserate>
      <Tax currency="USD">42.12</Tax>
      <OtherFees currency="USD">10.00</OtherFees>
    </RoomBundle>
  </Result>
</Transaction>

This example references pre-defined room and package metadata with the <RoomID> and <PackageID> elements.

Note that when you use Room Bundles, you must include one that matches the room's base rate (the price specified in the <Baserate> child element of the <RoomBundle> element).

For each <Result> element, the contained set of Room Bundles overwrites the existing set for that property/itinerary combination. If you do not define any Room Bundles in the <Result> element, then all Room Bundles are removed and only the basic room for that hotel/itinerary shows up in search results.

Be sure to use elements such as <Name> to make your Room Bundles more attractive to potential customers and be sure they match the hotel's landing page. In this example, you would define names and other descriptive information in the metadata.

Defining room and package metadata

To define Room Bundle metadata, use the <PackageData> and/or <RoomData> elements inside the <PropertyDataSet> element of a Transaction message.

You define room and package metadata in a Transaction message that is separate from the pricing and availability data. By defining this data ahead of time, your pricing updates do not need to include repetitive information such as descriptions, photo URLs, amenities, and other data about each and every room/package for each and every itinerary.

Google stores the metadata for you and inserts it into your ads when they are displayed. You can update room and package metadata at any time with a new Transaction message.

In the Transaction message, you set a package ID and a room ID on each block that you then reference in your <Results> blocks of pricing updates.

If the room and package data changes (for example, if you add a new room type in a property), send a new Transaction message that contains the updated room and package data. Google replaces the existing metadata about a room or package with the new data.

Google recommends that you define metadata during your initial setup. After pre-defining the metadata, you only need to reference the <RoomID> and <PackageID> values in your pricing updates rather than include all that information again. Google uses those IDs to match rooms and Room Bundles with the stored metadata. This can greatly reduce the overall size of your Transaction messages.

The following shows the syntax for defining Room Bundle metadata:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="timestamp" id="transaction_id">
  <PropertyDataSet>
    <Property>property_ID</Property>
      <RoomData>
        <!-- Required -->
        <RoomID>room_ID</RoomID>

        <!-- Required -->
        <Name>
          <!-- Use a separate entry for each supported language -->
          <Text text="room_name" language="language_code"/>
        </Name>

        <Description>
          <!-- Use a separate entry for each supported language -->
          <Text text="room_description" language="language_code"/>
        </Description>
        <Capaciy>max_physical_space</Capacity>

        <!-- Strongly Recommended -->
        <Occupancy>max_intended_space</Occupancy>

        <PhotoURL>
          <Caption>
            <!-- Use a separate entry for each supported language -->
            <Text text="photo_description" language="language_code"/>
          </Caption>
          <URL>photo_location</URL>
        </PhotoURL>
      </RoomData>

      <PackageData>
        <!-- Required -->
        <PackageID>package_ID</PackageID>

        <!-- Required -->
        <Name>
          <!-- Specify one for each supported language -->
          <Text text="package_name" language="language_code"/>
          ...
        </Name>

        <Description>
          <!-- Specify one for each supported language -->
          <Text text="package_description" language="language_code"/>
          ...
        </Description>

        <!-- Required -->
        <Refundable available="[ false | true ]" refundable_until_days="number_of_days"
          refundable_until_time="HH:MM:SS[<+|->HH:MM]"/>

        <BreakfastIncluded>[ false | true ]</BreakfastIncluded>
        <ChargeCurrency>[ deposit | hotel | installment | web ]</ChargeCurrency>
        <InternetIncluded>[ false | true ]</InternetIncluded>
        <ParkingIncluded>[ false | true ]</ParkingIncluded>
      </PackageData>

  </PropertyDataSet>
</Transaction>

The <PackageData> and <RoomData> elements are child elements of the <PropertyDataSet> element. For more information, see <PropertyDataSet> Element.

The following example defines room and package metadata for several Room Bundles:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2015-04-24T20:44:56-04:00" id="TXNID">
  <!-- A transaction message with room types result. -->
  <PropertyDataSet>
    <Property>12345</Property>
    <RoomData>
      <RoomID>single</RoomID>
      <Name>
        <Text text="Single room" language="en"/>
        <Text text="Chambre simple" language="fr"/>
      </Name>
      <Description>
        <Text text="A single room" language="en"/>
        <Text text="Le chambre simple" language="fr"/>
      </Description>
      <PhotoURL>
        <Caption>
          <Text text="Living area" language="en"/>
          <Text text="Le chambre" language="fr"/>
        </Caption>
        <URL>http://www.foo.com/static/bar/image1234.jpg</URL>
      </PhotoURL>
      <PhotoURL>
        <URL>http://www.foo.com/static/bar/image1235.jpg</URL>
      </PhotoURL>
      <Capacity>2</Capacity>
    </RoomData>
    <RoomData>
      <RoomID>double</RoomID>
      <Name>
        <Text text="Double room" language="en"/>
        <Text text="Chambre double" language="fr"/>
      </Name>
      <Occupancy>1</Occupancy>
    </RoomData>
    <PackageData>
      <PackageID>refundbreakfast</PackageID>
      <Name>
        <Text text="Refundable Room with Breakfast" language="en"/>
        <Text text="Chambre remboursable avec le petit déjeuner" language="fr"/>
      </Name>
      <Description>
        <Text text="Continental Breakfast" language="en"/>
        <Text text="Petit déjeuner continental" language="fr"/>
      </Description>
      <ChargeCurrency>hotel</ChargeCurrency>
      <Refundable available="1" refundable_until_days="3"/>
      <BreakfastIncluded>1</BreakfastIncluded>
    </PackageData>
    <PackageData>
      <PackageID>prepaid</PackageID>
      <Name>
        <Text text="Nonrefundable" language="en"/>
        <Text text="Non remboursable" language="fr"/>
      </Name>
      <Description>
        <Text text="Blah blah blad" language="en"/>
        <Text text="Le blah blah blad" language="fr"/>
      </Description>
      <Occupancy>2</Occupancy>
      <ChargeCurrency>web</ChargeCurrency>
      <Refundable available="0"/>
    </PackageData>
  </PropertyDataSet>
</Transaction>

Because prices for room/itinerary combinations change much more frequently than the room or package descriptions, defining metadata once and then referring to it is a much more efficient use of Transaction messages. In addition, errors such as mismatching room descriptions can be eliminated by using metadata rather than defining data inline.

You can also define the room and package data inline, in a pricing message, as the following example shows. This approach is not recommended, however, because it is less efficient than defining the metadata and the pricing data separately.

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2014-04-24T20:44:56-04:00" id="42">
  <Result>
    <Property>1234</Property>
    <Checkin>2015-06-07</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">199.99</Baserate>
    <Tax currency="USD">25.12</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="bookingsite1.com"/>
    </AllowablePointsOfSale>

    <!-- Less efficient method of defining Room Bundles is shown here -->
    <!-- Base Rate Room Bundle -->
    <RoomBundle>
      <RoomData>
        <Name>
          <Text text="Single Queen Room - Non-Smoking" language="en"/>
          <Text text="Chambre de la Roi Premium - Pas de Fumeurs" language="fr"/>
        </Name>
        <!-- Room can accommodate 4, but bundle is for 3 -->
        <Capacity>4</Capacity>
      </RoomData>
      <PackageData>
        <Occupancy>3</Occupancy>
        <ChargeCurrency>web</ChargeCurrency>
        <Refundable available="1" refundable_until_days="7"
             refundable_until_time="18:00:00"/>
        <ParkingIncluded>1</ParkingIncluded>
        <InternetIncluded>1</InternetIncluded>
      </PackageData>
      <!-- Price for 3 ("occupancy") -->
      <Baserate currency="USD">199.99</Baserate>
      <Tax currency="USD">25.12</Tax>
      <OtherFees currency="USD">10.00</OtherFees>
    </RoomBundle>

    <!-- Premium Room Bundle -->
    <RoomBundle>
      <RoomData>
        <Name>
          <Text text="Premium King Room - Non-Smoking" language="en"/>
          <Text text="Chambre de le Roi Premium - Pas de Fumeurs" language="fr"/>
        </Name>
        <!-- Room can accommodate 4 and bundle is for 4 -->
        <Capacity>4</Capacity>
      </RoomData>
      <PackageData>
        <Occupancy>4</Occupancy>
        <ChargeCurrency>web</ChargeCurrency>
        <Refundable available="1" refundable_until_days="1"
             refundable_until_time="18:00:00"/>
        <BreakfastIncluded>1</BreakfastIncluded>
        <ParkingIncluded>1</ParkingIncluded>
        <InternetIncluded>1</InternetIncluded>
      </PackageData>
      <!-- Price for 4 ("occupancy") -->
      <Baserate currency="USD">298.88</Baserate>
      <Tax currency="USD">42.12</Tax>
      <OtherFees currency="USD">10.00</OtherFees>
    </RoomBundle>
  </Result>
</Transaction>

Comparing occupancy and capacity

When defining Room Bundles, you must understand the difference between occupancy and capacity:

  • Occupancy is the number of guests that a Room Bundle is intended to apply to. For example, the "Honeymoon Package" has an occupancy of two. You set the value of a package's occupancy by using the <PackageData> or <RoomBundle> elements' <Occupancy> child element, as described in Transaction Message Syntax.
  • Capacity is the maximum number of people that a room can physically accommodate. The capacity of a room is always equal to or higher than the occupancy. For example, the "Honeymoon Suite" in your hotel has a maximum capacity of six people, but you price a bundle for two guests. You set the value of a package's capacity by using the <RoomData> element's <Capacity> child element, as described in Transaction Message Syntax.

When pricing a Room Bundle, you must give the price for the number of guests that the bundle is intended to be for (the value specified in the bundle's <Occupancy> element). If <Occupancy> is set to two, then the price in that package must be for two people. You cannot set <Occupancy> to four guests, and set the bundle's price for two guests.

Updating Room Bundles

This section describes how to remove a Room Bundle that is no longer available and how to update the price of an existing Room Bundle.

Removing a Room Bundle

Room Bundles in your data feeds are considered a set, which number anywhere from 0 to tens of them. When you send Room Bundles to Google, you send the current, complete set. You do not change values of an individual Room Bundle to mark a previously-available one as unavailable. Whatever set of bundles is in the most recent Transaction message replaces the current set.

For example, there are bundles A, B, C, and D. You first send a message that defines the set of room bundles A, B, C and D. Later, if bundle B sells out, you re-send the entire set with bundles A, C, and D only. If all Room Bundles have sold out, send an empty set of Room Bundles.

Changing prices

To change the price of a Room Bundle, set the new <Baserate> in the <Result> element. Room Bundles are different from hotel prices in the way that you update them. A hotel price is either positive (available for the given itinerary at the given price) or "-1" (not available).

To remove a room/itinerary combination from inventory, you set the <Result> block's <Baserate> to "-1". To remove a Room Bundle for a given room/itinerary, remove the <RoomBundle> element from the <Result> block in the Transaction message.

Every time you update a room/itinerary's <Result> block in your Transaction messages, you must include a complete set of available Room Bundles for each <Result>. Google replaces the existing set of Room Bundles with the new set. If you do not include any Room Bundles in the <Result>, then Google removes all Room Bundles for that room/itinerary.

Updating metadata

You update Room Bundle metadata with a response to Google's Query message. The Query message has the following format:

<Query>
  <HotelInfoProperties>
    <Property>property_ID</Property>
    ...
  </HotelInfoProperties>
</Query>

You respond to this type of Query message with a Transaction message that defines the room and package metadata for the specified hotels. For more information, see Query Messages.