Method: accounts.hotelViews.list

Returns the list of hotel views.

HTTP request

GET https://travelpartner.googleapis.com/v3/{parent=accounts/*}/hotelViews

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the account being queried. The format is accounts/{account_id}.

Query parameters

Parameters
pageSize

integer

Number of elements to retrieve in a single page.

pageToken

string

Token of the page to retrieve.

filter

string

Optional. The conditions (fields and expressions) used to filter HotelViews. The syntax requires spaces surrounding the in operator. Otherwise, spaces can be omitted.

Conditions cannot be joined.

The hotelId field can be used to select specific hotels.

The liveOnGoogle field can select properties that Google shows, or properties that are omitted in google search results.

The matchStatus field can be used to filter the list of HotelViews returned for the account.

Examples of valid conditions and their syntax are as follows:

  • hotelId = 'hotel_ABC'
  • hotelId in ('hotel_ABC', 'hotel_XYZ')
  • liveOnGoogle = 'TRUE'
  • liveOnGoogle = 'FALSE'
  • matchStatus = 'NOT_MATCHED'
  • matchStatus in ('NOT_MATCHED', 'MATCHED', 'MAP_OVERLAP')

Request body

The request body must be empty.

Response body

Response message for HotelViewService.ListHotelViews.

If successful, the response body contains data with the following structure:

JSON representation
{
  "hotelViews": [
    {
      object (HotelView)
    }
  ],
  "nextPageToken": string
}
Fields
hotelViews[]

object (HotelView)

The list of rows that match the query.

nextPageToken

string

Pagination token used to retrieve the next page of results.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/travelpartner

For more information, see the OAuth 2.0 Overview.