Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
Package google.type
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
日期
代表完整或部分日曆的日期,例如生日。您可在其他位置指定日期和時間,或沒有其他選擇。日期以公曆為相對於公曆。可能代表下列其中一種:
- 完整日期,具有非零的年、月和日值
- 月份和日期,帶有零年 (例如週年紀念日)
- 只有一年,變成零月和零日
- 年份和月份,出現零天 (例如信用卡到期日)
相關類型:* google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
| 欄位 |
year |
int32
日期的年份。必須為 1 到 9999,或是 0 才能指定不含年份的日期。
|
month |
int32
一年中的月份。必須為 1 到 12 或 0,才能指定不含月份和日的年份。
|
day |
int32
一個月中的第幾天。值必須介於 1 到 31 之間,且為該年和月份計算而得;設為 0 可以只指定年份,也可以只指定年份和月份,但日期可不算。
|
DayOfWeek
| 列舉 |
DAY_OF_WEEK_UNSPECIFIED |
未指定星期幾。 |
MONDAY |
週一 |
TUESDAY |
週二 |
WEDNESDAY |
星期三 |
THURSDAY |
週四 |
FRIDAY |
星期五 |
SATURDAY |
Saturday (週六) |
SUNDAY |
星期日 |
除非另有註明,否則本頁面中的內容是採用創用 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 (世界標準時間)。"],[],["The content defines `Date` and `DayOfWeek`. `Date` represents a calendar date with `year`, `month`, and `day` fields, allowing for variations like full dates, anniversaries, or just a year/month. `year` ranges from 1-9999 or 0, `month` from 1-12 or 0, and `day` from 1-31 or 0. `DayOfWeek` is an enum specifying days of the week, including `DAY_OF_WEEK_UNSPECIFIED`, Monday to Sunday.\n"]]