Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
MetricOption
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列舉 |
METRIC_OPTION_UNSPECIFIED |
未指定指標選項。在要求中,預設值為 GGGREGATED_TOTAL。 |
AGGREGATED_TOTAL |
系統在整個時間範圍內匯總的傳回值。這是預設值。 |
AGGREGATED_DAILY |
傳回時間範圍內的每日時間戳記值。 |
BREAKDOWN_DAY_OF_WEEK |
系統會傳回星期幾的詳細資料。僅適用於 ACTIONS_PHONE。 |
BREAKDOWN_HOUR_OF_DAY |
系統會按時段細分傳回值。僅適用於 ACTIONS_PHONE。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003emetricOption\u003c/code\u003e field controls how data is displayed, with \u003ccode\u003eAGGREGATED_TOTAL\u003c/code\u003e as the default, showing aggregated values for the entire timeframe.\u003c/p\u003e\n"],["\u003cp\u003eDaily or hourly breakdowns are available for phone call actions (\u003ccode\u003eACTIONS_PHONE\u003c/code\u003e) using \u003ccode\u003eAGGREGATED_DAILY\u003c/code\u003e, \u003ccode\u003eBREAKDOWN_DAY_OF_WEEK\u003c/code\u003e, or \u003ccode\u003eBREAKDOWN_HOUR_OF_DAY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf no \u003ccode\u003emetricOption\u003c/code\u003e is specified (\u003ccode\u003eMETRIC_OPTION_UNSPECIFIED\u003c/code\u003e), it defaults to \u003ccode\u003eAGGREGATED_TOTAL\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# MetricOption\n\nOption to specify how data should be displayed in the response.\n\n| Enums ||\n|-----------------------------|------------------------------------------------------------------------------------------|\n| `METRIC_OPTION_UNSPECIFIED` | No metric option specified. Will default to AGGREGATED_TOTAL in a request. |\n| `AGGREGATED_TOTAL` | Return values aggregated over the entire time frame. This is the default value. |\n| `AGGREGATED_DAILY` | Return daily timestamped values across time range. |\n| `BREAKDOWN_DAY_OF_WEEK` | Values will be returned as a breakdown by day of the week. Only valid for ACTIONS_PHONE. |\n| `BREAKDOWN_HOUR_OF_DAY` | Values will be returned as a breakdown by hour of the day. Only valid for ACTIONS_PHONE. |"]]