Hotel List Feed XML Reference

The Hotel List Feed is an XML file that lists all hotels for which you will provide pricing information. The Hotel List Feed itself does not contain pricing information.

The root element of a Hotel List Feed is the <listings> element. This element contains <listing> elements that describe your properties.

You create a Hotel List Feed as part of your initial implementation, and then add or remove hotels from it as part of regular maintenance.

After creating a Hotel List Feed, you can upload it to Google using the Hotel List Feed Upload Tool in Hotel Center.

Listing requirements

To be eligible for Google Hotel Ads, a property in your Hotel List Feed must have the following:

  • Rooms in which paying guests can stay
  • A physical presence and fixed location that is open to the public
  • Fixed walls and plumbing
  • A staffed front desk open during normal business hours
  • A minimum stay requirement of no greater than 7 days

Common examples of ineligible properties include cruises and apartments because they usually don't meet the above criteria.

Camping cabins and other camping establishments with fixed walls, plumbing, and climate control (including wood stoves or propane heaters) are eligible. Outdoor lodgings that are not eligible include:

  • Campsites, where guests stay in tents
  • RV parks, where guests bring their own RV

<listings>

<listings> is the root element of a Hotel List Feed and it contains a <language> element and at least one <listing>.

The <listings> element appears in the following place in the Hotel List Feed XML hierarchy:

+ <listings>
    + <language>
    + <listing>

Syntax

The <listings> element uses the following syntax:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="xsi"
    xsi:noNamespaceSchemaLocation="schema_xsd">
  <language>language_code</language>
  <listing>listing</listing>
  ...
</listings>

Attributes

The <listings> element has the following attributes:

Attribute Required? Description
xmlns:xsi Required Set to "http://www.w3.org/2001/XMLSchema-instance".
xsi:noNamespaceSchemaLocation Required Set to "https://www.gstatic.com/localfeed/local_feed.xsd".

Child elements

The <listings> element has the following child elements:

Child element Required? Type Description
<language> Required String The language in which your feed is written. Set the value of this element to a two-letter language code. For example, "en" for English.
<listing> Required <listing> One or more entries that describe each hotel in the feed. Note that each hotel in the list must have an ID that is unique to your site, and that this ID should never be re-used.

Examples

Structured Address

The following example shows a partial Hotel List Feed with a structured address:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <!-- The value of <id> must be unique to your site for all time. Do NOT reuse IDs. -->
    <id>123abc</id>
    <name>Belgrave House</name>
    <address format="simple">
      <component name="addr1">666 Acacia Ave</component>
      <component name="addr2">Floor 5</component>
      <component name="city">London</component>
      <component name="province">Greater London</component>
      <component name="postal_code">SW1W 9TQ</component>
    </address>
    <country>UK</country>
    <latitude>35.070374</latitude>
    <longitude>-106.213648</longitude>
    <phone type="main">123-456-7890</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
  </listing>
  ...
</listings>

Free-Form Address

The following example shows a partial Hotel List Feed with a free-form address:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <!-- The value of <id> must be unique to your site for all time. Do NOT reuse IDs. -->
    <id>123abc</id>
    <name>Belgrave House</name>
    <address>666 Acacia Ave, Floor 5, Boston, MA, 02472</address>
    <country>US</country>
    <latitude>35.070374</latitude>
    <longitude>-106.213648</longitude>
    <phone type="main">123-456-7890</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
  </listing>
  ...
</listings>

Optional Content

The following example shows a partial Hotel List Feed with a listing that contains an optional <content>:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>My Apartment</name>
    <address format="simple">
      <component name="addr1">1 Sandstone Building</component>
      <component name="city">Los Angeles</component>
      <component name="postal_code">90210</component>
      <component name="province">CA</component>
    </address>
    <country>US</country>
    <latitude>40.730610</latitude>
    <longitude>-73.935242</longitude>
    <phone type="main">12345678</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
    <content>
      <text type="description">
        <link>https://examplelisting.com/listings/12345</link>
        <title>3 bedrooms with ocean views</title>
        <body>Stay in this newly renovated 3BR house with ocean views.</body>
        <date month="7" day="23" year="2017"/>
      </text>
      <review type="editorial">
        <link>https://example.com/reviews/42</link>
        <title>A little piece of heaven</title>
        <author>EXAMPLE.COM</author>
        <rating>8</rating>
        <body>This place is really good.</body>
      </review>
      <review type="user">
        <link>https://exampleperson.org/reviews/82</link>
        <author>Susan von Trapp</author>
        <rating>6</rating>
        <body>Not a bad place, but I prefer to be closer to the beach.</body>
        <date day="6" month="7" year="2017"/>
        <servicedate day="16" month="6" year="2017"/>
      </review>
      <attributes>
        <website>https://hotel.example.com</website>
        <client_attr name="rating">8.2</client_attr>
        <client_attr name="star_rating">4</client_attr>
        <client_attr name="num_reviews">14</client_attr>
        <client_attr name="air_conditioned">Yes</client_attr>
        <client_attr name="has_beach_access">No</client_attr>
        <client_attr name="has_free_breakfast">Yes</client_attr>
        <client_attr name="has_spa">No</client_attr>
        <client_attr name="number_of_rooms">5</client_attr>
        <client_attr name="pets_allowed">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
        <client_attr name="kitchen_availability">Available in all rooms</client_attr>
        <client_attr name="parking_type">No payment required</client_attr>
        <client_attr name="swimming_pool_type">Indoors</client_attr>
        <client_attr name="wifi_type">Paid</client_attr>
      </attributes>
      <image type="photo" url="https://image_url">
        <link>https://image_url</link>
        <title>Main hotel picture</title>
      </image>
    </content>
  </listing>
  ...
</listings>

<listing>

A hotel definition within a Hotel List Feed's <listings> element.

The <listing> element appears in the following place in the Hotel List Feed XML hierarchy:

+ <listings>
    + <language>
    + <listing>

Syntax

The <listing> element uses the following syntax:

<?xml version="1.0" encoding="UTF-8"?>
<listings ... >
  <listing>
    <!-- Specify <listing>'s child elements in the order shown below. -->
    <id>hotel_ID</id>
    <name>hotel_name</name>
    <address>
      <component name="addr1">street_address_1</component>
      <component name="addr2">street_address_2</component>
      <component name="city">city_name</component>
      <component name="province">province_name</component>
      <component name="postal_code">postal_code</component>
    </address>
    <!-- You can also define an address freeform, although this is not recommended: -->
    <!-- <address>freeform_address</address> -->

    <country>country_code</country>
    <latitude>hotel_latitude</latitude>
    <longitude>hotel_longitude</longitude>
    <phone type="[fax|main|mobile|tdd|tollfree]">phone_number</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
    <content>content</content>
  </listing>
</listings>

Attributes

The <listing> element has no attributes.

Child elements

The <listing> element has the following child elements:

Child element Required? Type Description
<id> Required String A unique identifier for the hotel.
<name> Required String The name of the hotel. For example:
<name>Belgrave House</name>
<address> Required Object or String

The full physical location of the hotel.

This element takes a single attribute, format, which you must set to "simple".

At a minimum, you must provide the street address, city, state/region, and postal code for the hotel. Use <component> child elements to describe each of the following parts of the address:

  • addr1: The primary street address of the hotel.
  • addr2: The secondary street address, if necessary.
  • addr3: A third portion of the street address, if necessary.
  • city: The name of the hotel's city.
  • province: The name of the hotel's state, region, or province.
  • postal_code: The hotel's postal code.

For example:

<address format="simple">
  <component name="addr1">666 Acacia Ave</component>
  <component name="addr2">Floor 5</component>
  <component name="city">London</component>
  <component name="province">Greater London</component>
  <component name="postal_code">SW1W 9TQ</component>
</address>

Alternatively, you can provide a "freeform" address, although this is not recommended. For example:

<address>666 Acacia Ave, Floor 5, Boston, MA, 02472</address>

Note that P.O. boxes or other mailing-only addresses are not considered full physical addresses.

<country> Required String The country that this listing is located in. The value must be an ISO 3116 uppercase 2-letter country code. For example, United States is "US" and Canada is "CA". For example:
<country>US</country>
<latitude> Required* Float The latitude that corresponds to the location of the listing. For example:
<latitude>37.423738</latitude>

This value can be generated with GeoCoding tools like the Google Maps API.

<longitude> Required* Float The longitude that corresponds to the location of the listing. For example:
<longitude>-122.090101</longitude>

This value can be generated with GeoCoding tools like the Google Maps API.

<phone> Required* String

One or more contact numbers for the hotel. If the listing is business branch, please provide the phone number specific to branch location (not the phone number of central headquarters).

The type attribute can be one of the following:

  • fax: Fax telephone number.
  • main: Main voice telephone number.
  • mobile: Mobile telephone number.
  • tdd: Telecommunications Device for the Deaf (TDD) telephone number.
  • tollfree: Toll free telephone number.

For example:

<!-- Singapore (country code +65) -->
<phone type="main">+65 6722-2323</phone>
<!-- U.S. (country code +1) -->
<phone type="fax">+001 408-555-1111</phone>

At a minimum, you should provide a main type.

* Either a phone number OR latitude/longitude are required. We recommend that you define both.
<category> Optional String The type of property, such as a hotel. Partners may use whatever internal categories they have to describe their property, such as "business hotels," "resorts," "motels," and similar.
<content> Optional <content> Optional details used for the listing such as a description, ratings, and features of the property.

Examples

Structured Address

The following example shows a partial Hotel List Feed with a structured address:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <!-- The value of <id> must be unique to your site for all time. Do NOT reuse IDs. -->
    <id>123abc</id>
    <name>Belgrave House</name>
    <address format="simple">
      <component name="addr1">666 Acacia Ave</component>
      <component name="addr2">Floor 5</component>
      <component name="city">London</component>
      <component name="province">Greater London</component>
      <component name="postal_code">SW1W 9TQ</component>
    </address>
    <country>UK</country>
    <latitude>35.070374</latitude>
    <longitude>-106.213648</longitude>
    <phone type="main">123-456-7890</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
  </listing>
  ...
</listings>

Free-Form Address

The following example shows a partial Hotel List Feed with a free-form address:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <!-- The value of <id> must be unique to your site for all time. Do NOT reuse IDs. -->
    <id>123abc</id>
    <name>Belgrave House</name>
    <address>666 Acacia Ave, Floor 5, Boston, MA, 02472</address>
    <country>US</country>
    <latitude>35.070374</latitude>
    <longitude>-106.213648</longitude>
    <phone type="main">123-456-7890</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
  </listing>
  ...
</listings>

Optional Content

The following example shows a partial Hotel List Feed with a listing that contains an optional <content>:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>My Apartment</name>
    <address format="simple">
      <component name="addr1">1 Sandstone Building</component>
      <component name="city">Los Angeles</component>
      <component name="postal_code">90210</component>
      <component name="province">CA</component>
    </address>
    <country>US</country>
    <latitude>40.730610</latitude>
    <longitude>-73.935242</longitude>
    <phone type="main">12345678</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
    <content>
      <text type="description">
        <link>https://examplelisting.com/listings/12345</link>
        <title>3 bedrooms with ocean views</title>
        <body>Stay in this newly renovated 3BR house with ocean views.</body>
        <date month="7" day="23" year="2017"/>
      </text>
      <review type="editorial">
        <link>https://example.com/reviews/42</link>
        <title>A little piece of heaven</title>
        <author>EXAMPLE.COM</author>
        <rating>8</rating>
        <body>This place is really good.</body>
      </review>
      <review type="user">
        <link>https://exampleperson.org/reviews/82</link>
        <author>Susan von Trapp</author>
        <rating>6</rating>
        <body>Not a bad place, but I prefer to be closer to the beach.</body>
        <date day="6" month="7" year="2017"/>
        <servicedate day="16" month="6" year="2017"/>
      </review>
      <attributes>
        <website>https://hotel.example.com</website>
        <client_attr name="rating">8.2</client_attr>
        <client_attr name="star_rating">4</client_attr>
        <client_attr name="num_reviews">14</client_attr>
        <client_attr name="air_conditioned">Yes</client_attr>
        <client_attr name="has_beach_access">No</client_attr>
        <client_attr name="has_free_breakfast">Yes</client_attr>
        <client_attr name="has_spa">No</client_attr>
        <client_attr name="number_of_rooms">5</client_attr>
        <client_attr name="pets_allowed">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
        <client_attr name="kitchen_availability">Available in all rooms</client_attr>
        <client_attr name="parking_type">No payment required</client_attr>
        <client_attr name="swimming_pool_type">Indoors</client_attr>
        <client_attr name="wifi_type">Paid</client_attr>
      </attributes>
      <image type="photo" url="https://image_url">
        <link>https://image_url</link>
        <title>Main hotel picture</title>
      </image>
    </content>
  </listing>
  ...
</listings>

<content>

Adds information about a listing, such as ratings and reviews, amenities, and other details. The <content> element is optional. Within <content>, all child elements are optional.

The <content> element appears in the following place in the Hotel List Feed XML hierarchy:

+ <listings>
    + <language>
    + <listing>
        + <content>

Syntax

The <content> element uses the following syntax:

<?xml version="1.0" encoding="UTF-8"?>
<listings ... >
  <listing>
    <content>
      <!-- Specify <text>'s child elements in the order shown below. -->
      <text type="description">
        <link>listing_link</link>
        <title>listing_title</title>
        <author>listing_author</author>
        <body>listing_description</body>
        <date>listing_date</date>
      </text>
      <!-- 0 or more reviews: -->
      <review type="[editorial|user]">
        ...
      </review>
      <!-- 0 or more attributes: -->
      <attributes>
        <website>https://hotel.example.com</website>
        <client_attr name="air_conditioned">[No|Yes]</client_attr>
        <client_attr name="all_inclusive_available">[No|Yes]</client_attr>
        <client_attr name="alternate_hotel_id">alternate_hotel_id</client_attr>
        <client_attr name="child_friendly">[No|Yes]</client_attr>
        <client_attr name="custom_0">custom_attribute_0</client_attr>
        <client_attr name="custom_1">custom_attribute_1</client_attr>
        <client_attr name="custom_2">custom_attribute_2</client_attr>
        <client_attr name="custom_3">custom_attribute_3</client_attr>
        <client_attr name="custom_4">custom_attribute_4</client_attr>
        <client_attr name="has_affiliated_golf_course">[No|Yes]</client_attr>
        <client_attr name="has_airport_shuttle">[No|Yes]</client_attr>
        <client_attr name="has_bar_or_lounge">[No|Yes]</client_attr>
        <client_attr name="has_beach_access">[No|Yes]</client_attr>
        <client_attr name="has_business_center">[No|Yes]</client_attr>
        <client_attr name="has_fitness_center">[No|Yes]</client_attr>
        <client_attr name="has_free_breakfast">[No|Yes]</client_attr>
        <client_attr name="has_hot_tub">[No|Yes]</client_attr>
        <client_attr name="has_laundry_service">[No|Yes]</client_attr>
        <client_attr name="has_restaurant">[No|Yes]</client_attr>
        <client_attr name="has_room_service">[No|Yes]</client_attr>
        <client_attr name="has_spa">[No|Yes]</client_attr>
        <client_attr name="hotel_brand">hotel_brand</client_attr>
        <client_attr name="kitchen_availability">[Available in all rooms|Available in some rooms|
          Not available]</client_attr>
        <client_attr name="number_of_rooms">rooms_per_unit</client_attr>
        <client_attr name="num_reviews">number_of_reviews</client_attr>
        <client_attr name="parking_type">[No payment required|Paid|Not available]</client_attr>
        <client_attr name="pets_allowed">[No|Yes]</client_attr>
        <client_attr name="rating">aggregate_rating</client_attr>
        <client_attr name="star_rating">[1|2|3|4|5]</client_attr>
        <client_attr name="smoke_free_property">[No|Yes]</client_attr>
        <client_attr name="swimming_pool_type">[Indoors|Outdoors|Indoors and outdoors|Not available]</client_attr>
        <client_attr name="wheelchair_accessible">[No|Yes]</client_attr>
        <client_attr name="wifi_type">[Not available|No payment required|Paid]</client_attr>
      </attributes>
      <!-- a picture of the hotel or property-->
      <image type="photo" url="https://image_url">
        <link>https://image_url</link>
        <title>Main Hotel Picture</title>
      </image>
    </content>
  </listing>
  ...
</listings>

Attributes

The <content> element has no attributes.

Child elements

The <content> element has the following child elements:

Child element Required? Type Description
<text 
type=
"description">
Optional Object

The webpage associated with the listing from the provider. Has the following child elements:

  • <link>: A link to the description. Include the "http://" or
    "https://" in this element (optional).
  • <title>: The title for the description (optional).
  • <author>: The author of the description (optional).
  • <body>: The body of the description (required).
  • <date>: The date of the description (optional).
  • Note: These elements must appear in the order above.

<review 
type=
"[editorial|user]">
Optional <review>

Contains a user review or an editorial review of the listing. Your listing can have any number of reviews in it, of either type.

You do not need to include all reviews for a property in your <listing> element; this element is intended for you to include selected reviews that illustrate this listing's features or quality.

<attributes> Optional Object

Contains 0 or more <client_attr> child elements that provide details about the property. The child elements use the following syntax:

<client_attr name="attribute_name">attribute_value<client_attr>

For a list and a description of child elements, refer to <attributes>.

All <client_attr> elements are optional.

If there is a <website> child element, it must be positioned before any <client_attr> element.

<image> Optional Object Repeated tag, contains detailed image information.

Example

The following example shows a partial Hotel List Feed that includes the <content> element:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>My Apartment</name>
    <address format="simple">
      <component name="addr1">1 Sandstone Building</component>
      <component name="city">Los Angeles</component>
      <component name="postal_code">90210</component>
      <component name="province">CA</component>
    </address>
    <country>US</country>
    <latitude>40.730610</latitude>
    <longitude>-73.935242</longitude>
    <phone type="main">12345678</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
    <content>
      <text type="description">
        <link>https://examplelisting.com/listings/12345</link>
        <title>3 bedrooms with ocean views</title>
        <body>Stay in this newly renovated 3BR house with ocean views.</body>
        <date month="7" day="23" year="2017"/>
      </text>
      <review type="editorial">
        <link>https://example.com/reviews/42</link>
        <title>A little piece of heaven</title>
        <author>EXAMPLE.COM</author>
        <rating>8</rating>
        <body>This place is really good.</body>
      </review>
      <review type="user">
        <link>https://exampleperson.org/reviews/82</link>
        <author>Susan von Trapp</author>
        <rating>6</rating>
        <body>Not a bad place, but I prefer to be closer to the beach.</body>
        <date day="6" month="7" year="2017"/>
        <servicedate day="16" month="6" year="2017"/>
      </review>
      <attributes>
        <website>https://hotel.example.com</website>
        <client_attr name="rating">8.2</client_attr>
        <client_attr name="star_rating">4</client_attr>
        <client_attr name="num_reviews">14</client_attr>
        <client_attr name="air_conditioned">Yes</client_attr>
        <client_attr name="has_beach_access">No</client_attr>
        <client_attr name="has_free_breakfast">Yes</client_attr>
        <client_attr name="has_spa">No</client_attr>
        <client_attr name="number_of_rooms">5</client_attr>
        <client_attr name="pets_allowed">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
        <client_attr name="kitchen_availability">Available in all rooms</client_attr>
        <client_attr name="parking_type">No payment required</client_attr>
        <client_attr name="swimming_pool_type">Indoors</client_attr>
        <client_attr name="wifi_type">Paid</client_attr>
      </attributes>
      <image type="photo" url="https://image_url">
        <link>https://image_url</link>
        <title>Main hotel picture</title>
      </image>
    </content>
  </listing>
  ...
</listings>

<review>

Contains a user review or an editorial review. You do not need to include all reviews for a listing in your <listing> element; this element is intended for you to include selected reviews that are indicative of this listing's features or quality.

The <review> element appears in the following place in the Hotel List Feed XML hierarchy:

+ <listings>
    + <language>
    + <listing>
        + <content>
            + <review>

Syntax

The <review> element uses the following syntax:

<?xml version="1.0" encoding="UTF-8"?>
<listings ... >
  <listing>
    <content>
      ...
      <!-- Specify <review>'s child elements in the order shown below. -->
      <review type="editorial">
        <link>review_link</link>
        <title>review_title</title> <!-- Title is for reviews of type "editorial" only -->
        <author>review_author</author>
        <rating>review_rating</rating>
        <body>review_text</body>
        <date>review_date</date>
        <servicedate>review_servicedate</servicedate>
      </review>
      <review type="user">
        <link>review_link</link>
        <author>review_author</author>
        <date month="MM" day="DD" year="YYYY"/>  <!-- Date is for reviews of type "user" only -->
        <servicedate month="MM" day="DD" year="YYYY"/>  <!-- Service Date is for reviews of type "user" only -->
        <rating>review_rating</rating>
        <body>review_text</body>
      </review>
    </content>
  </listing>
</listings>

Attributes

The <review> element has the following attributes:

Attribute Required? Description
type Required The type of review. Set to one of the following values:
  • editorial: A review by a website or other reviewing authority.
  • user: A review by an end user.

Child elements

The <review> element has the following child elements:

Child element Required? Type Description
<link> Optional String A link to the review. Include the "http://" or "https://" in this element.
<title> Optional String (Editorial reviews only) The title of the review.
<author> Optional String The review's author; for example, "Susan von Trapp". This can also be the name of a website or publication in which the review appears if it is uncredited.
<rating> Optional String A floating point number from 0 to 10 (inclusive) representing the score of the review. For example, "8.9".
<body> Optional String The text of the review. This element should not contain HTML.
<date month="MM" day="DD" year="YYYY"/> Optional Object (User reviews only) The date of the review, which you specify with the following attributes of this element:
  • day: The day of the month; for example, "3".
  • month: The month, where 1 = January. For example, "12".
  • year: The four-digit year; for example, "2018".

For example, June 7th, 2017 is written as:

<date month="6" day="7" year="2017"/>
<servicedate month="MM" day="DD" year="YYYY"/> Optional Object (User reviews only) The date the reviewer visited the listing being reviewed. The format is the same as <date> above.

For example, June 7th, 2017 is written as:

<servicedate month="6" day="7" year="2017"/>

Note that <title> is a valid child element of <review> only if the review's type is editorial, and <date> is only valid if type is user.

Example

The following example shows a partial Hotel List Feed with a listing that contains an editorial and a user review:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>My Apartment</name>
    <address format="simple">
      <component name="addr1">1 Sandstone Building</component>
      <component name="city">Los Angeles</component>
      <component name="postal_code">90210</component>
      <component name="province">CA</component>
    </address>
    <country>US</country>
    <latitude>40.730610</latitude>
    <longitude>-73.935242</longitude>
    <phone type="main">12345678</phone>
    <category>hotel</category> <!-- You can use whatever property type categories you wish -->
    <content>
      <text type="description">
        <link>https://examplelisting.com/listings/12345</link>
        <title>3 bedrooms with ocean views</title>
        <body>Stay in this newly renovated 3BR house with ocean views.</body>
        <date month="7" day="23" year="2017"/>
      </text>
      <review type="editorial">
        <link>https://example.com/reviews/42</link>
        <title>A little piece of heaven</title>
        <author>EXAMPLE.COM</author>
        <rating>8</rating>
        <body>This place is really good.</body>
      </review>
      <review type="user">
        <link>https://exampleperson.org/reviews/82</link>
        <author>Susan von Trapp</author>
        <rating>6</rating>
        <body>Not a bad place, but I prefer to be closer to the beach.</body>
        <date day="6" month="7" year="2017"/>
        <servicedate day="16" month="6" year="2017"/>
      </review>
      <attributes>
        <website>https://hotel.example.com</website>
        <client_attr name="rating">8.2</client_attr>
        <client_attr name="star_rating">4</client_attr>
        <client_attr name="num_reviews">14</client_attr>
        <client_attr name="air_conditioned">Yes</client_attr>
        <client_attr name="has_beach_access">No</client_attr>
        <client_attr name="has_free_breakfast">Yes</client_attr>
        <client_attr name="has_spa">No</client_attr>
        <client_attr name="number_of_rooms">5</client_attr>
        <client_attr name="pets_allowed">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
        <client_attr name="kitchen_availability">Available in all rooms</client_attr>
        <client_attr name="parking_type">No payment required</client_attr>
        <client_attr name="swimming_pool_type">Indoors</client_attr>
        <client_attr name="wifi_type">Paid</client_attr>
      </attributes>
      <image type="photo" url="https://image_url">
        <link>https://image_url</link>
        <title>Main hotel picture</title>
      </image>
    </content>
  </listing>
  ...
</listings>

<attributes>

The <attributes>tag can be used to describe property amenities and to classify ratings and reviews of the property.

+ <listings>
    + <language>
    + <listing>
        + <content>
            + <review>
            + <attributes>

Note: All attributes are optional.

Child elements

Child element Required? Description
<website> Optional The primary website for the hotel. If present, it must be positioned before the first <client_attr> element. Example:
<website>https://hotel.example.com</website>
<client_attr name="attribute_name"> Optional An additional characteristic or "attribute" of the property that can be specified using a currently supported attribute_name or attribute_name for Vacation Rentals.

Values for the attribute_name placeholder

The following table lists valid values for attribute_name in the <client_attr name="attribute_name"> element.

Values for attribute_name Description Valid content values
air_conditioned All of the guest rooms in this property have air conditioning. Yes/No
all_inclusive_available There is a room or rate available that includes not just a room, but all food and drinks (including alcoholic beverages) for the duration of the guest's stay. Yes/No
alternate_hotel_id An alternate identifier for your property. Having separate IDs is useful if you might need one property identifier for your feed information and another property identifier for your booking engine. Any string value
child_friendly The business has one or more special features for families traveling with children, such as reduced rates, cots or child-sized beds, a kid's club, a babysitting service, or a suitable entertainment venue or place for children to play on the premises. Yes/No
custom_[0-4] Any string-typed custom attribute. These will not be displayed to users, but can be used for grouping hotels in Google Ads campaigns. There are 5 such fields that can be used in this manner that are not interchangeable. For example, a hotel with custom_0 = "City Center" will not be grouped with a hotel with custom_4 = "City Center". Any string value
has_affiliated_golf_course This property either has a golf course on its premises or owns a golf course nearby and provides tee-time reservations as well as transportation for guests to and from the course. There is often a fee associated with using the golf course. Yes/No
has_airport_shuttle This property offers an airport shuttle, either free or at additional cost. This can be a shuttle that stops at multiple hotels as long as it has an explicit stop at this hotel. Yes/No
has_bar_or_lounge There is an indoor and/or outdoor bar or lounge that serves alcoholic beverages. Guests don't have to leave the premises to reach the bar or lounge. Yes/No
has_beach_access This property has a beach that is directly accessible without users needing to cross a public road. Yes/No
has_business_center This property has a room with a computer, Internet access, and a printer available to guests who need a free or paid workspace for conducting business on the premises. Yes/No
has_fitness_center This property has a fitness center. Guests don't have to leave the premises to reach the fitness center. Yes/No
has_free_breakfast Free breakfast is available to all guests every day of the week, regardless of room rate. If the hotel has a room rate that includes free breakfast, and a room rate that doesn't include free breakfast, then you should indicate false for this attribute. Yes/No
has_hot_tub Either some or all of the guest rooms have a whirlpool or jacuzzi, or the property has a hot tub on the premises. There may be a supplemental charge for the hot tub. Yes/No
has_laundry_service Guests can leave their laundry at the front desk or in their rooms and have their laundered clothing returned to their rooms. There may be a supplemental charge for the service. Coin-operated laundry facilities don't count. Yes/No
has_restaurant There is a sit-down indoor and/or outdoor restaurant on the premises. Guests don't have to leave the premises to reach the restaurant. Yes/No
has_room_service Food is cooked onsite and delivered directly to rooms by staff. Room service hours may be limited. There may be a supplemental charge. Yes/No
has_spa There is a spa at the property that provides one or more of the following free or paid services: massage, sauna, and facial treatments. Guests don't have to leave the premises to reach the spa. Yes/No
hotel_brand The brand to which this hotel belongs. For example, "Marriott" or "Hilton". This will not be displayed to users but can be used for grouping hotels and configuring hotel icons in Google Ads campaigns. Any string value
kitchen_availability Kitchens are available where guests can prepare hot meals and refrigerate food in their rooms.
  • Available in all rooms
  • Available in some rooms
  • Not available
number_of_rooms This field lists the total number of units associated with the listing ID. Note:This number doesn't represent the price per booking unit based on pricing and inventory feed data. Any non-negative integer.
num_reviews Number of reviews of the listing. Any non-negative integer.
parking_type Denotes whether parking is available, and whether it is free or paid.
  • No payment required
  • Paid
  • Not available
pets_allowed Some or all rooms allow guests to bring pets (dogs and/or cats that aren't service animals) with them. Yes/No
rating A floating point number representing the aggregate property rating. This number is typically from 0-5, 0-10, or 0-100, but you can use any range that represents your rating system.
smoke_free_property Smoking isn't allowed throughout the property. Yes/No
star_rating The number of stars given to the listing from a rating organization. 1, 2, 3, 4, 5.
swimming_pool_type Denotes whether a swimming pool is available on the property, and if so, the type of pool.
  • Indoors
  • Outdoors
  • Indoors and outdoors
  • Not available
wheelchair_accessible This property is accessible for a person who uses a wheelchair. Yes/No
wifi_type Denotes whether the property provides wireless internet (wifi) service for patrons to use in all sections of the property (not limited to a specific area). It may be free or there may be a charge for use.
  • No payment required
  • Paid
  • Not available

Values for the attribute_name placeholder for Vacation Rentals

Below is a list of valid values for attribute_name in the <client_attr name="attribute_name"> element, however, partners are encouraged to provide any additional attribute_name they may have. These values are only applicable to vacation rentals properties.

Values for attribute_name Required? Description Valid content values
capacity Required Maximum number of guests the property can accommodate. Non-negative integer
is_lat_long_obfuscated Required Whether the latitude/longitude is obfuscated. Yes/No
cleaning_disinfection Optional (strongly recommended) Whether the property is cleaned with disinfectant (with a description on the partner site). Yes/No
min_days_between_stays Optional (strongly recommended) The minimum number of "buffer days" the rental must be empty after the prior occupants depart. Non-negative integer
enhanced_cleaning_practices Optional (strongly recommended) Whether the property uses enhanced cleaning practices (with a description on the partner site). Yes/No
partner_hygiene_link Optional (strongly recommended) Link to external partner site providing more information about the hygiene details of the listing. Free text (the site's URL)
number_of_bathrooms Optional (strongly recommended) Number of bathrooms. Non-negative float value, for example, 1, 1.5, 2
number_of_bedrooms Optional (strongly recommended) Number of bedrooms. Non-negative integer value
number_of_beds Optional (strongly recommended) Number of beds (in all the rooms). Non-negative integer value
self_checkin_checkout Optional (strongly recommended) Whether the property allows for self check-in and check-out. Yes/No
rating_num Optional (strongly recommended) Number of ratings that the property has. Non-negative integer
ac Optional Whether the property has air conditioning. Yes/No
airport_shuttle Optional Whether the host provides transportation to/from airport or other terminals. Yes/No
balcony Optional Whether the property has a balcony. Yes/No
beach_access Optional Whether the property has access to a public beach close to the property. Yes/No
cancellation_policy Optional Free-text explanation of cancellation policy. Free Text
cancellation_policy_type Optional

Partners can provide any type of policy name and Google will work with the partner to map the name to Google's suggested types. (If providing custom types, please limit them to about five categoties and communicate the descriptions of the types to your Account Manager).

Suggested types of cancellation policy accepted by the host:

  • No Refund: No refund offered for any reason or timeframe.
  • Strict: Bookings canceled at least 60 days before the start of the stay will receive a full refund.
  • Firm: Bookings canceled at least 60 days before the start of the stay will receive a full refund. Bookings canceled at least 30 days before the start of the stay will receive a 50% refund.
  • Moderate: Bookings canceled at least 30 days before the start of the stay will receive a full refund. Bookings canceled at least 14 days before the start of the stay will receive a 50% refund.
  • Relaxed: Bookings canceled at least 14 days before the start of the stay will receive a full refund. Bookings canceled at least 7 days before the start of the stay will receive a 50% refund.
Relaxed/Moderate/Firm/Strict/No Refund
check_in_time Optional Time of day for check-in to property. Free text
check_out_time Optional Exact time of day for check-out from the property. Free text
child_friendly Optional Whether the property is suitable for children. Yes/No
crib Optional Whether the property provides a crib. Yes/No
elevator Optional Whether the property has an elevator. Yes/No
fire_place Optional Whether the property has a fireplace. Yes/No
free_breakfast Optional Whether the property has free breakfast included. Yes/No
gym_fitness_equipment Optional Whether the property has a gym or any fitness equipment. Yes/No
heating Optional Whether the property has heating.
hot_tub Optional Whether the property has a hot tub. Yes/No
instant_bookable Optional Whether the property is instantly bookable through checkout process. The alternative is waiting for approval. Yes/No
ironing_board Optional Whether the property has ironing boards available. Yes/No
kitchen Optional Whether the property has a kitchen. Yes/No
license_num Optional License number (tourist or business) required to be shown for properties in certain regions of the world. It could be repeated and, if multiple licenses exist, we suggest adding authority of the license as context (for example: "Paris: 123456ABC"). Free text
microwave Optional Whether the property has a microwave available. Yes/No
minimum_days_advance_purchase Optional Minimum number of days in advance that the property can be booked. Non-negative integer
minimum_night_stay Optional Minimum number of nights a guest can book the property. Positive integer (more than zero)
max_night_stay Optional Maximum number of nights a guest can book the property. Positive integer (more than zero)
number_of_living_rooms Optional Number of living rooms. Non-negative integer value
outdoor_grill Optional Whether the property has a grill. Yes/No
oven_stove Optional Whether the property has a stove. Yes/No
parking_type Optional Type of parking available on the property. Free/Paid/None
patio Optional Whether the property has a patio. Yes/No
pets_allowed Optional Some or all rooms allow guests to bring pets (dogs and/or cats that aren't service animals) with them. Yes/No
pool_type Optional Type of pool (pool access) the property has. Indoors, Outdoors, Indoors/Outdoors, None
private_beach_access Optional Whether the property has dedicated access to a non-public beach. Yes/No
room_type Optional Type of property being shared with Google.
Note: Only accepting entire place for now.
Entire Place, Shared room, Private Room
smoking_free_property Optional Whether the property is smoke-free (no smoking allowed). Yes/No
square_footage Optional The square footage of the property. Non-negative float value
tv Optional Whether the property has a TV. Yes/No
washer_dryer Optional Whether the property has laundry appliances. Yes/No
wheelchair_accessible Optional Whether the property is wheelchair accessible. Yes/No
wifi_type Optional Type of Wi-Fi internet access provided by the property. Free/Paid/None
host_language Optional Languages the host can speak. A comma-separated list of language codes (for example: de,en)

Vacation Rental Example

<?xml version="1.0" encoding="UTF-8"?>
<listings>
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>Apartment Name</name>
    <address format="simple">
      <component name="addr1">Detailed Address</component>
      <component name="city">Mountain View</component>
      <component name="postal_code">94043</component>
      <component name="province">California</component>
    </address>
    <country>US</country>
    <latitude>37.4182515</latitude>
    <longitude>-122.0742354</longitude>
    <phone type="main">12345678</phone>
    <category>vacation_villa</category>
    <date day="21" month="12" year="2017"/>
    <content>
      <text type="description">
        <link>https://list_url</link>
        <title>Description Title</title>
        <body>Description Body</body>
      </text>
      <attributes>
        <client_attr name="capacity">7</client_attr>
        <client_attr name="is_lat_long_obfuscated">No</client_attr>
        <client_attr name="cleaning_disinfection">Yes</client_attr>
        <client_attr name="min_days_between_stays">3</client_attr>
        <client_attr name="enhanced_cleaning_practices">Yes</client_attr>
        <client_attr name="partner_hygiene_link">http://www.example.com/hygiene/</client_attr>
        <client_attr name="number_of_bathrooms">2</client_attr>
        <client_attr name="number_of_bedrooms">3</client_attr>
        <client_attr name="number_of_beds">4</client_attr>
        <client_attr name="self_checkin_checkout">Yes</client_attr>
        <client_attr name="rating">4.8</client_attr>
        <client_attr name="rating_num">5373</client_attr>
        <client_attr name="ac">Yes</client_attr>
        <client_attr name="airport_shuttle">Yes</client_attr>
        <client_attr name="balcony">Yes</client_attr>
        <client_attr name="beach_access">Yes</client_attr>
        <client_attr name="cancellation_policy">50% deposit returnable before 4 weeks of arrival date, 100% refundable before 8 weeks of arrival</client_attr>
        <client_attr name="cancellation_policy_type">Moderate</client_attr>
        <client_attr name="check_in_time">3pm</client_attr>
        <client_attr name="check_out_time">11am</client_attr>
        <client_attr name="child_friendly">Yes</client_attr>
        <client_attr name="crib">Yes</client_attr>
        <client_attr name="elevator">Yes</client_attr>
        <client_attr name="fire_place">Yes</client_attr>
        <client_attr name="free_breakfast">Yes</client_attr>
        <client_attr name="gym_fitness_equipment">Yes</client_attr>
        <client_attr name="heating">Yes</client_attr>
        <client_attr name="hot_tub">Yes</client_attr>
        <client_attr name="instant_bookable">Yes</client_attr>
        <client_attr name="internet_type">Free</client_attr>
        <client_attr name="ironing_board">Yes</client_attr>
        <client_attr name="kitchen">Yes</client_attr>
        <client_attr name="license_num">Free text. If multiple licenses exist, we suggest adding authority of the licence as context</client_attr>
        <client_attr name="license_num">Paris: 123456ABC</client_attr>
        <client_attr name="microwave">Yes</client_attr>
        <client_attr name="min_days_advance_purchase">2</client_attr>
        <client_attr name="min_night_stay">3</client_attr>
        <client_attr name="number_of_living_rooms">1</client_attr>
        <client_attr name="outdoor_grill">Yes</client_attr>
        <client_attr name="oven_stove">Yes</client_attr>
        <client_attr name="parking_type">Free</client_attr>
        <client_attr name="patio">Yes</client_attr>
        <client_attr name="pool_type">Indoors</client_attr>
        <client_attr name="private_beach_access">Yes</client_attr>
        <client_attr name="refund_policy">Cancellations made after 48 hours but before 24 hours prior to checkin will received a 50% refund</client_attr>
        <client_attr name="room_type">Entire Place</client_attr>
        <client_attr name="smoking_free_property">Yes</client_attr>
        <client_attr name="square_footage">1200</client_attr>
        <client_attr name="tv">Yes</client_attr>
        <client_attr name="washer_dryer">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
      </attributes>
    </content>
  </listing>
</listings>

<image>

+ <listings>
    + <language>
    + <listing>
        + <content>
            + <review>
            + <attributes>
            + <image>

Images are used to show the property in the listing ID. All images used must follow these guidelines:

  • The recommended aspect ratio for images is 4:3.
  • The image URL must be accessible by the Googlebot Image crawler.
  • If your site includes a robots.txt at the root level, verify that it contains one of the two options shown below:
    1. Allows the Googlebot crawler to crawl your site's content, images included.
      • User-agent: Googlebot
      • Allow: /
    2. Allows the Googlebot Image crawler to crawl the images on your site.
      • User-agent: Googlebot-Image
      • Allow: /
  • Screenshots of images or websites aren't permitted. Images must be original and actual images or photographs.

Attributes

Attribute name Required? Format Description
type Required Text

An image must be one of the following:

  • "ad" if the image is an advertisement
  • "menu" if the image is a restaurant menu
  • "photo if the image is a photo of the business
url Required Text The URL of the full-sized image. Use the url attribute to specify the image to use on that page.
width Required A non-negative integer Width of the image, in pixels (greater than 720 pixels is recommended)
height Required A non-negative integer Height of the image, in pixels (greater than 720 pixels is recommended)

Child elements

Child element Required? Description
<link> Requested, but required for local photo listings. This tag contains the valid and up-to-date URL of the page on your site that the relevant image is on. It doesn't contain the URL for the image itself. Example:
<link><http://www.example.com/magic_pizza/></link>
<title> Requested This tag contains the title of the image. Example:
<title>"Luxury Apartment"</title>
<author> Not required The name of the author of the content. The value can either be a user name or a full name in the format "Firstname Lastname."
<date> Required

This tag identifies the date that the content item was created. You must enter a year, month, and day, as in the following example:

<date month="6" day="7" year="2017"/>

Example

The following example shows a partial Hotel List Feed with image tags:

<?xml version="1.0" encoding="UTF-8"?>
<listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.gstatic.com/localfeed/local_feed.xsd">
  <language>en</language>
  <listing>
    <content>
      <review>
      </review>
      <attributes>
      </attributes>
      <image type="photo" url="https://image_url" width="400" height="300">
        <link>https://image_url</link>
        <title>Apartment at Sandstone</title>
        <author>Jessica Landlord</author>
        <date month="6" day="7" year="2017"/>
      </image>
    </content>
  </listing>
  ...
</listings>

Syntax guidelines

When creating an XML-based Hotel List Feed, use the following guidelines:

  • Use UTF-8 encoding. Specify this encoding schema by including the encoding attribute in your XML tag, as shown in the examples below.
  • You can specify data values in your feed with CDATA sections. If you use CDATA sections, do not escape special characters.
  • Use escape codes for data values that are not in CDATA sections, including URLs. You can use either the entity code or the character code to represent these special characters.

    The following table lists common entity and character codes you can use:

    Character Entity Character Code
    Ampersand (&) &amp; &#38;
    Single Quote (') &apos; &#39;
    Double Quote (") &quot; &#34;
    Greater Than (>) &gt; &#62;
    Less Than (<) &lt; &#60;
  • Omit XML elements that do not contain data. For example, if you do not have the latitude and longitude for a hotel, you should not include empty <latitude/> and <longitude/> elements.
  • Do not use HTML in your XML elements under any circumstances (even if it is escaped).
  • To validate your feed prior to uploading, you can use the local feed XSD "https://www.gstatic.com/localfeed/local_feed.xsd".
  • To use comments in your feed, wrap the comment in <!-- and --> tags, as the following example shows:

    <!-- This is a comment -->
  • Be sure that you close the <date> element in a user <review>. For example:

    <date day="2" month="12" year="2017"/>

Finding and fixing data issues

To find and fix data issues in your Hotel List Feed, you can use the following tools:

Hotel Center: