- HTTP 要求
- 路徑參數
- 查詢參數
- 要求主體
- 回應主體
- 授權範圍
- ParticipationResult
- 鍵
- MissedParticipationCountDetails
- NoPriceCountDetails
- PriceMissingCountDetails
- PriceProblemCountDetails
- PriceUnavailableCountDetails
可查詢 (取得、篩選及區隔) 特定帳戶的參與度報表。
HTTP 要求
GET https://travelpartner.googleapis.com/v3/{name=accounts/*}/participationReportViews:query
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
name |
要查詢的帳戶資源名稱。格式為 |
查詢參數
| 參數 | |
|---|---|
filter |
用於篩選所查詢帳戶參與度指標的條件 (欄位和運算式)。語法需要在 重要事項:新增多個條件的正確語法為:
有效條件範例如下:
|
aggregateBy |
指定如何區隔查詢傳回的指標。舉例來說,如果將 字串值是以逗號分隔的欄位清單。有效欄位包括: 重要事項:使用 |
pageSize |
要傳回的參與結果數上限。服務傳回的產品數量可能會少於這個值。如未指定,最多將傳回 10,000 個結果。許可的最大值為 10,000;超出的數值將一律指定為 10,000。 |
pageToken |
這是從先前的 participationReportViews.query 要求收到的網頁權杖。提供此項目即可接收後續網頁。 進行分頁時,提供至 participationReportViews.query 的所有其他參數須與提供網頁權杖的呼叫相符。 |
要求主體
要求主體必須為空白。
回應主體
ParticipationReportService.QueryParticipationReport 的回應訊息。
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 |
|---|
{
"results": [
{
object ( |
| 欄位 | |
|---|---|
results[] |
符合查詢的結果清單。 |
nextPageToken |
用來擷取下一頁結果的分頁符記。 |
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/travelpartner
詳情請參閱OAuth 2.0 Overview。
ParticipationResult
代表查詢帳戶參與統計資料的結果。
| JSON 表示法 |
|---|
{ "key": { object ( |
| 欄位 | |
|---|---|
key |
結果的鍵。 |
opportunityCount |
特定飯店可用的商機總數。商機代表系統能向使用者顯示飯店廣告的總次數。 |
participationCount |
可參與 Google Ads 競價程序的商機總數。 |
participationPercent |
將成功參與競價的機會次數,除以商機總數後算出的參與度百分比。舉例來說,假設某個房源在 100 次商機中,有 90 次能參與 Google Ads 競價,那麼參與率就是 90%。 |
missedParticipationCount |
無法參與 Google Ads 競價程序的商機總數。其中包括:
|
missedParticipationCountDetails |
導致喪失參與機會的原因 (例如沒有空房),以及各原因的總數。 |
partnerHotelDisplayName |
合作夥伴的飯店顯示名稱。只有在結果依 |
鍵
結果的鍵。
| JSON 表示法 |
|---|
{ "date": { object ( |
| 欄位 | |
|---|---|
date |
您要求指標的日期。 如果 |
userRegionCode |
使用者的國家/地區 ISO 3116 區域代碼。 如果 |
deviceType |
使用者的裝置類型。 如果 |
partnerHotelId |
合作夥伴的飯店 ID。 如果 |
hotelRegionCode |
飯店所在國家/地區的 CLDR 地區代碼。 如果 |
advanceBookingWindow |
使用者想要提前預訂行程的天數。 如果 |
lengthOfStayDays |
行程晚數。 如果 |
checkinDate |
行程的入住日期。 如果 |
occupancy |
行程的總入住人數。 如果 |
MissedParticipationCountDetails
按原因細分的喪失參與機會次數。
| JSON 表示法 |
|---|
{ "noAvailabilityCount": string, "hotelSuspendedCount": string, "noTaxBreakdownCount": string, "noLandingPageCount": string, "noPriceCount": string, "noPriceCountDetails": { object ( |
| 欄位 | |
|---|---|
noAvailabilityCount |
因無法預訂飯店/行程組合,或旅客不符合費率資格而喪失的參與機會總數。如要參與這些競價,你可能需要提供更多價格資訊。 |
hotelSuspendedCount |
因一或多間飯店因價格準確度違規而遭停權,導致喪失的參與機會總數。 |
noTaxBreakdownCount |
因一或多間飯店未另外說明稅金和相關費用而喪失的參與機會總數。 |
noLandingPageCount |
沒有與使用者相符的到達網頁。 |
noPriceCount |
因要求的行程未提供價格而喪失的參與機會總數。 |
noPriceCountDetails |
導致無價格的各項原因 (例如即時價格不適用),以及各項原因的總數。 |
otherReasonCount |
飯店並未參與競價,原因不明。 |
priceMissingCount |
因 Google 快取中沒有價格,或無法成功回應即時價格要求而喪失的參與機會總數。其中包括:
|
priceMissingCountDetails |
導致價格遺漏計數的原因。 |
priceProblemCount |
因行程價格準確性相關問題而喪失的參與機會總數。其中包括:
|
priceProblemCountDetails |
導致價格問題數量的原因。 |
priceUnavailableCount |
因要求的行程價格顯示為無法取得 (-1) 而喪失的參與機會總數。其中包括:
|
priceUnavailableCountDetails |
導致價格無法提供次數的原因。 |
NoPriceCountDetails
導致沒有價格的原因,以及各原因的總計次數。
| JSON 表示法 |
|---|
{ "livePricingTechnicalIssueCount": string, "livePricingNotTriggeredCount": string, "livePricingConfigIssueCount": string, "livePricingNotAvailableCount": string, "livePricingOtherReasonCount": string } |
| 欄位 | |
|---|---|
livePricingTechnicalIssueCount |
由於下列任一原因,導致即時價格發生技術問題而喪失的參與機會總數:
|
livePricingNotTriggeredCount |
由於下列任一原因,導致即時定價未觸發而喪失的參與機會總數:
|
livePricingConfigIssueCount |
由於下列任一原因,導致即時定價未觸發而喪失的參與機會總數:
|
livePricingNotAvailableCount |
因無法取得即時價格而喪失的參與機會總數。特定預設行程或使用者介面無法觸發即時價格。在這種情況下,合作夥伴必須具備快取價格才能參與競價。 |
livePricingOtherReasonCount |
因即時價格的其他問題而喪失的參與機會數。 |
PriceMissingCountDetails
導致價格遺漏次數的原因,以及各原因的總次數。
| JSON 表示法 |
|---|
{ "cacheRateMissingCount": string, "itineraryBlockedCount": string, "livePricingNotSetupCount": string, "bandwidthDepletedCount": string, "livePricingTimeoutCount": string, "livePricingErrorCount": string } |
| 欄位 | |
|---|---|
cacheRateMissingCount |
該行程的快取中沒有價格。由於頁面限制,系統無法執行即時查詢。 |
itineraryBlockedCount |
該行程不在基本參數範圍內,因此系統並未針對該行程,透過即時查詢或快取填補擷取價格。 |
livePricingNotSetupCount |
該行程的價格未快取,且這個帳戶未設定即時查詢。 |
bandwidthDepletedCount |
該行程的價格未快取,也沒有任何剩餘的即時查詢配額。 |
livePricingTimeoutCount |
該行程的價格未快取,且傳送至系統的即時查詢逾時。 |
livePricingErrorCount |
該行程的價格未快取。即時查詢並未逾時,但系統傳回錯誤。 |
PriceProblemCountDetails
造成價格問題的各項原因,以及每項原因的總數。
| JSON 表示法 |
|---|
{ "hotelSuspendedCount": string, "priceUnusuallyHighCount": string, "priceUnusuallyLowCount": string, "taxesAndFeesMissingCount": string, "basePriceViolationsCount": string, "priceAccuracyIssueCount": string } |
| 欄位 | |
|---|---|
hotelSuspendedCount |
飯店已遭停權。這可能是因為飯店有持續性的問題,例如稅金和相關費用有誤。 |
priceUnusuallyHighCount |
相較於區域趨勢,這個行程的價格似乎特別高。 |
priceUnusuallyLowCount |
相較於區域趨勢,這個行程的價格似乎特別低。 |
taxesAndFeesMissingCount |
價格缺少稅金和相關費用。 |
basePriceViolationsCount |
底價相較於總價過低。 |
priceAccuracyIssueCount |
價格準確度問題。 |