Page Summary
-
The accounts.hotelViews.list method returns a list of hotel views.
-
The HTTP request uses a GET method with a URL following gRPC Transcoding syntax.
-
Path parameters require the resource name of the account being queried.
-
Query parameters allow filtering by
pageSize,pageToken, andfilterbased on fields likehotelId,liveOnGoogle, andmatchStatus. -
The request body must be empty, and the response body contains a list of
hotelViewsand anextPageTokenfor pagination.
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
|
The resource name of the account being queried. The format is |
Query 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. A value of 'TRUE' includes properties that are conditionally active, e.g. LIVE_ON_GOOGLE_STATUS_ACTIVE_OUTSIDE_DSA_REGION.
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 (
|
| Fields | |
|---|---|
hotelViews[]
|
The list of rows that match the query. |
nextPageToken
|
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 .

