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)
    }
  ],
  "next_page_token": string
}
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.

next_page_token

string

Pagination token used to retrieve the next page of results.

PriceAccuracyRow

A price accuracy row.

JSON representation
{
  "hotel": string,
  "checkin_date": {
    object (Date)
  },
  "length_of_stay_days": number,
  "fetched_price_record": {
    object (PriceRecord)
  },
  "cached_price_record": {
    object (PriceRecord)
  },
  "correction_time": string,
  "url": string,
  "deal": boolean,
  "rate_rule_id": string,
  "hotel_country_code": string,
  "device_type": enum (Device),
  "final_domain": string,
  "mismatch_reason": enum (MismatchReason),
  "affects_score": boolean,
  "signal_source": enum (SignalSource)
}
Fields
hotel

string

Partner-defined hotel ID.

checkin_date

object (Date)

Check-in date.

length_of_stay_days

number

Length of stay.

fetched_price_record

object (PriceRecord)

Price as read from the partner website.

cached_price_record

object (PriceRecord)

Price as advertised.

correction_time

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.

deal

boolean

True if the price is eligible for "Deal badge".

rate_rule_id

string

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

hotel_country_code

string

The country of the hotel (based on address).

device_type

enum (Device)

The user's device type.

final_domain

string

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

mismatch_reason

enum (MismatchReason)

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

affects_score

boolean

True if this row affects the overall price accuracy score.

signal_source

enum (SignalSource)

Source of the price accuracy signal.

PriceRecord

A price record.

JSON representation
{
  "base_price": number,
  "taxes_and_fees": number,
  "currency_code": string,
  "time": string
}
Fields
base_price

number

Base price.

taxes_and_fees

number

Taxes and fees.

currency_code

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.