Method: accounts.hotels.setLiveOnGoogle

Collection-level custom method to alter the Live on Google setting for multiple hotels. Each invocation can turn off the setting for multiple hotels. To turn some hotels on and turn some hotels off, make multiple invocations.

HTTP request

POST https://travelpartner.googleapis.com/v3/{account=accounts/*/hotels}:setLiveOnGoogle

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
account

string

Required. The resource name of the account that owns the hotels to alter. The format is accounts/{account_id}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "liveOnGoogle": boolean,
  "partnerHotelIds": [
    string
  ]
}
Fields
liveOnGoogle

boolean

Required. Whether Google search results may display the listed hotels. When true, Google will consider showing the hotels. When false, Google will never show the hotels.

partnerHotelIds[]

string

Required. Identifies the hotels to modify with the liveOnGoogle setting

Response body

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

Response message for HotelService.SetLiveOnGoogle.

JSON representation
{
  "affectedHotelIds": [
    string
  ],
  "nonAffectedHotelIds": [
    string
  ]
}
Fields
affectedHotelIds[]

string

Identifies the hotels to which the changes were applied

nonAffectedHotelIds[]

string

Hotels that Google was unable to update.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.