REST Resource: accounts.hotelViews

Resource: HotelView

A hotel view. Covers the Hotel and hotel_list_stats Scorecard functionalities in pre-v3.0 API versions. For more information, refer to Hotel List Feed.

JSON representation
{
  "partner_hotel_id": string,
  "google_hotel_id": string,
  "google_cluster_id": string,
  "partner_hotel_display_name": string,
  "google_hotel_display_name": string,
  "overclustered_partner_hotel_ids": [
    string
  ],
  "primary_overclustered_partner_hotel_id": string,
  "data_issues": [
    enum (FeedDataIssue)
  ]
}
Fields
partner_hotel_id

string

The unique ID of the hotel that the partner provides in their Hotel List Feed.

google_hotel_id

string

Google's canonical ID for the hotel.

google_cluster_id

string

The Google Maps identifier for the hotel.

partner_hotel_display_name

string

Partner's hotel name.

google_hotel_display_name

string

Google's hotel name.

overclustered_partner_hotel_ids[]

string

Other hotels with which the hotel is overclustered.

If your feed contains overclustered hotels, update the feed and resubmit it. To do this, you can use the manual match tool.

primary_overclustered_partner_hotel_id

string

The primary hotel in the overclustered set.

data_issues[]

enum (FeedDataIssue)

Indicates that the hotel has data quality issues. The value of this field is an array of error codes associated with the listing.

If your feed contains data issues, update the feed and resubmit it. For more information, refer to this article.

FeedDataIssue

Enumerates Hotels and Local feed data issues.

Enums
FEED_DATA_ISSUE_UNSPECIFIED Not specified.
FEED_DATA_ISSUE_UNKNOWN The value is unknown in this version.
NO_DATA_ISSUE No data issues found.
DUPLICATE_ADDRESS The address is the same as another property in the Hotel List Feed.
MISSING_PHYSICAL_STREET_ADDRESS The provided address appears to contain a postal box instead of a physical street address.
MISSING_STREET_NAME The address does not appear to contain a street name.
MISSING_STREET_NUMBER The address does not appear to contain a street number.
MISSING_ADDRESS The address does not appear to contain a street number, street name, or supported country code.
MISSING_COUNTRY An invalid but recognized country code was provided.
INVALID_POSTAL_CODE The address contains an invalid postal code.
INVALID_POSTAL_CODE_SUFFIX The address contains an invalid postal code suffix.
UNEXPECTED_POSTAL_CODE_SUFFIX The address contains a postal code suffix when unsupported by the country's postal code system.
UNEXPECTED_POSTAL_CODE The address contains a postal code when unsupported by the country's postal code system.
INVALID_AMENITIES The name and value at 'listing.content.attributes.attr' is either unsupported or has an invalid value.
INVALID_EMAIL_ADDRESS The email at 'listing.content.attributes.attr[name='email']' is not a valid email address.
DUPLICATE_LATLONG The latitude/longitude pair is the same as another property in the Hotel List Feed.
LATLONG_INCONSISTENT_WITH_ADDRESS The latitude/longitude pair provided for the address is more than 500 meters away from the Google latitude/longitude generated from the address.
MISSING_LATLONG A valid pair of latitude/longitude fields is missing and Google latitude/longitude generation is disabled.
COULD_NOT_GEOCODE A valid pair of latitude/longitude fields is missing and Google could not generate them from the address.
MISSING_HOTEL_NAME No hotel name is provided.
HOTEL_NAME_EMPTY An empty or whitespace only name is provided, but no valid name.
INVALID_HOTEL_NAME An invalid name is provided, but no valid name.
HOTEL_NAME_TOO_LONG The hotel name exceeds 200 characters.
PARSE_ERROR_IN_XML Google encountered an error while importing your Hotel List Feed.
UNEXPECTED_ATTRIBUTE_IN_XML Google encountered an unknown error while importing your Hotel List Feed.
DUPLICATE_PHONE_NUMBER The phone number you provided for this property is the same as the phone number for another property. More than one listing in the Hotel List Feed cannot have the same phone number.
MISSING_PHONE_NUMBER No valid phone number for this property found.
MISSING_VOICE_PHONE_NUMBER Only invalid or fax phone numbers found.
INVALID_PHONE_NUMBER_FORMAT The phone number format is not valid.
INVALID_PHONE_NUMBER The phone number is not valid.
INVALID_PHONE_NUMBER_COUNTRY_CODE The country code of the phone number is not valid.
PHONE_NUMBER_TOO_LONG The phone number contains too many digits.
PHONE_NUMBER_TOO_SHORT The phone number contains has too few digits.
INVALID_WEBSITE_URL The specified content.attributes.attr[name='website'] element is not a valid URL.
ADWORDS_ATTRIBUTE_TOO_LONG The category or content.attributes.client_attr[name='hotel_brand'] element exceeds 70 Unicode characters, and/or content.attributes.client_attr[name='custom_*'] exceeds 100 Unicode characters.

Methods

list

Returns the list of hotel views.

summarize

Returns summarized information about hotels.