Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
ServiceList
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"name": string,
"serviceItems": [
{
object (ServiceItem )
}
]
} |
欄位 |
name |
string
必要欄位。這個營業地點的 Google 識別碼,格式為:accounts/{accountId}/locations/{locationId}/serviceList
|
serviceItems[] |
object (ServiceItem )
這個服務清單中的服務項目。系統會自動移除重複的服務項目。
|
ServiceItem
說明單一服務項目的訊息。用於說明商家提供的服務類型。例如剪髮做為服務。
JSON 表示法 |
{
"isOffered": boolean,
"price": {
object (Money )
},
// Union field service_item_info can be only one of the following:
"structuredServiceItem": {
object (StructuredServiceItem )
},
"freeFormServiceItem": {
object (FreeFormServiceItem )
}
// End of list of possible types for union field service_item_info .
} |
欄位 |
isOffered |
boolean
選用設定。這個欄位會決定商家是否提供輸入服務。
|
price |
object (Money )
選用設定。代表服務項目的貨幣價格。建議在加入價格時設定 currencyCode 和單位。
|
聯集欄位 service_item_info 。請一律設定以下其中一個欄位。service_item_info 只能是下列其中一項: |
structuredServiceItem |
object (StructuredServiceItem )
這個欄位會設為結構化資料的大小寫。
|
freeFormServiceItem |
object (FreeFormServiceItem )
這個欄位會設為任意形式服務資料的大小寫。
|
StructuredServiceItem
代表商家提供的結構化服務。例如:toilet_installation。
JSON 表示法 |
{
"serviceTypeId": string,
"description": string
} |
欄位 |
serviceTypeId |
string
必要欄位。serviceTypeId 欄位是 Google 提供的專屬 ID,可在 ServiceTypeMetadata 中找到。這項資訊是由 category.batchGet RPC 服務提供。
|
description |
string
選用設定。結構化服務項目的說明。長度上限為 300 個半形字元。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eA service list allows businesses to display the services they offer, containing one or more service items with details like price and availability.\u003c/p\u003e\n"],["\u003cp\u003eService items can be structured, using predefined service types, or free-form, allowing custom service descriptions.\u003c/p\u003e\n"],["\u003cp\u003eStructured service items utilize a \u003ccode\u003eserviceTypeId\u003c/code\u003e for categorization, while free-form items rely on a \u003ccode\u003ecategoryId\u003c/code\u003e and custom labels.\u003c/p\u003e\n"],["\u003cp\u003eEach service item can include a price and indicate whether it's currently offered by the business.\u003c/p\u003e\n"],["\u003cp\u003eService lists are identified by a unique Google identifier associated with a specific location.\u003c/p\u003e\n"]]],["The content defines a service list, which contains multiple service items. Each service item can be structured or free-form, and includes details like whether it's offered (`isOffered`) and its price. Structured items have a `serviceTypeId` and optional description, while free-form items require a `categoryId` and a `label`. Service list `name` is a Google identifier and it has an array of `serviceItems`. `service_item_info` must include one type of service `structuredServiceItem` or `freeFormServiceItem`.\n"],null,[]]