REST Resource: accounts.priceAccuracyViews

Resource: PriceAccuracyView

A price accuracy view. Covers the price accuracy reports functionality in pre-v3.0 API versions. For more information, refer to Price Accuracy report.

JSON representation
{
  "name": string,
  "results": [
    {
      object (PriceAccuracyRow)
    }
  ]
}
Fields
name

string

Resource name in the format accounts/{account_id}/priceAccuracyViews/{report_date}.

results[]

object (PriceAccuracyRow)

The list of rows that match the query.

PriceAccuracyRow

A price accuracy row.

JSON representation
{
  "hotel": string,
  "checkinDate": {
    object (Date)
  },
  "lengthOfStayDays": integer,
  "fetchedPriceRecord": {
    object (PriceRecord)
  },
  "cachedPriceRecord": {
    object (PriceRecord)
  },
  "correctionTime": string,
  "url": string,
  "rateRuleId": string,
  "hotelCountryCode": string,
  "deviceType": enum (Device),
  "finalDomain": string,
  "mismatchReason": enum (MismatchReason),
  "affectsScore": boolean,
  "signalSource": enum (SignalSource)
}
Fields
hotel

string

Partner-defined hotel ID.

checkinDate

object (Date)

Check-in date.

lengthOfStayDays

integer

Length of stay.

fetchedPriceRecord

object (PriceRecord)

Price as read from the partner website.

cachedPriceRecord

object (PriceRecord)

Price as advertised.

correctionTime

string (Timestamp format)

Time at which an incorrect price is updated to a correct price.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

url

string

Initial URL visited on the partner website.

rateRuleId

string

The rate rule of the advertised price for non-public rates.

hotelCountryCode

string

The country of the hotel (based on address).

deviceType

enum (Device)

The user's device type.

finalDomain

string

The domain of the final page from which prices are read.

mismatchReason

enum (MismatchReason)

The reason why the fetched price didn't match the cached price.

affectsScore

boolean

True if this row affects the overall price accuracy score.

signalSource

enum (SignalSource)

Source of the price accuracy signal.

PriceRecord

A price record.

JSON representation
{
  "basePrice": number,
  "taxesAndFees": number,
  "currencyCode": string,
  "time": string
}
Fields
basePrice

number

Base price.

taxesAndFees

number

Taxes and fees.

currencyCode

string

ISO 4217 currency code.

time

string (Timestamp format)

Timestamp of this price record.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Device

Enumerates supported devices.

Enums
DEVICE_UNSPECIFIED Not specified.
DEVICE_UNKNOWN The value is unknown in this version.
DESKTOP Computers.
MOBILE Mobile devices with full browsers.
TABLET Tablets with full browsers.

MismatchReason

Enumerates mismatch reasons.

Enums
MISMATCH_REASON_UNSPECIFIED Not specified.
MISMATCH_REASON_UNKNOWN The value is unknown in this version.
TAX_MISMATCH Tax mismatch.
ROOM_UNAVAILABLE Room unavailable.
SITE_ERROR Site error.
PRICE_FEED_DELAYED Price feed delayed.

SignalSource

Enumerates supported signaling methods for price accuracy.

Enums
SIGNAL_SOURCE_UNSPECIFIED Not specified.
SIGNAL_SOURCE_UNKNOWN The value is unknown in this version.
FETCHED The price is read directly from the partner's website.
PIXEL The price is provided by the partner via a price accuracy pixel.

Methods

get

Returns the requested price accuracy view in full detail.

list

Lists available price accuracy views.

summarize

Returns the price accuracy summary.