Package google.shopping.merchant.quota.v1beta

索引

QuotaService

服務,可依 Merchant API 方法取得方法呼叫配額資訊。

ListQuotaGroups

rpc ListQuotaGroups(ListQuotaGroupsRequest) returns (ListQuotaGroupsResponse)

列出 Merchant Center 帳戶的每日通話配額和每個群組的使用情形。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 Overview

ListQuotaGroupsRequest

ListQuotaGroups 方法的要求訊息。

欄位
parent

string

必要欄位。擁有收集方法配額的商家帳戶。格式:accounts/{account}

page_size

int32

選用設定。回應中傳回的配額數量上限,用於分頁。預設值為 500;超過 1000 的值會強制設為 1000。

page_token

string

選用設定。用於擷取後續網頁的符記 (如有提供)。所有其他參數都必須與提供網頁權杖的原始呼叫相符。

ListQuotaGroupsResponse

ListMethodGroups 方法的回應訊息。

欄位
quota_groups[]

QuotaGroup

每個群組的方法、目前配額用量和限制。配額會在群組中的所有方法之間共用。群組會依據 quota_usage 以遞減順序排序。

next_page_token

string

可做為 page_token 傳送的權杖,用於擷取後續網頁。如果省略這個欄位,就不會有後續頁面。

MethodDetails

Merchant API 中每個方法的方法詳細資料。

欄位
method

string

僅供輸出。方法名稱,例如 products.list

version

string

僅供輸出。方法所屬的 API 版本。

subapi

string

僅供輸出。方法所屬的子 API。

path

string

僅供輸出。方法的路徑,例如 products/v1/productInputs.insert

QuotaGroup

Merchant API 中方法的群組資訊。配額會在群組中的所有方法之間共用。即使群組中沒有任何方法有用途,系統也會傳回群組的資訊。

欄位
name

string

ID。配額群組的資源名稱。格式:accounts/{account}/quotas/{group} 注意:{group} 的格式不保證一致

quota_usage

int64

僅供輸出。目前的配額用量,也就是在特定一天內,對群組中方法所做的呼叫次數。每日配額限制會在世界標準時間下午 12 點重設。

quota_limit

int64

僅供輸出。群組每日允許的通話次數上限。

quota_minute_limit

int64

僅供輸出。群組每分鐘允許的呼叫數量上限。

method_details[]

MethodDetails

僅供輸出。列出適用於所有方法群組配額的項目。