add_alert
重要事項:Content API for Shopping 將於 2026 年 8 月 18 日終止服務。
update
掌握最新資訊
瞭解 Merchant API 的新功能、錯誤修正和更新。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
日期範圍
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Merchant Center 查詢語言可讓您使用自訂或相對日期範圍指定日期範圍。所有指標要求都必須包含 segments.date 子句的條件,WHERE指出要擷取成效資料的時間範圍。
自訂日期範圍
您可以指定 ISO 8601(YYYY-MM-DD) 格式的日期:
segments.date BETWEEN '2021-01-01' AND '2021-01-31'
或:
segments.date >= '2021-01-01' AND segments.date <= '2021-01-31'
您可以使用單引號 (') 或雙引號 (") 定義日期字串,但必須保持一致,例如:"2021-01-01' 不是有效的日期字串。
相對日期範圍
除了自訂日期範圍,您也可以指定相對日期範圍,例如 或 ,方法是使用 而不是 和 :LAST_30_DAYSTHIS_MONTHDURINGBETWEENAND
WHERE segments.date DURING LAST_30_DAYS
如需可用相對日期範圍的清單,請參閱 Merchant Center 查詢語言文法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-13 (世界標準時間)。
[null,null,["上次更新時間:2025-08-13 (世界標準時間)。"],[],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. All requests for performance metrics require a `segments.date` condition in the `WHERE` clause. Dates can be specified in ISO 8601 format within a custom range using `BETWEEN` or `\u003e=` and `\u003c=`. Alternatively, relative date ranges like `LAST_30_DAYS` can be specified with `DURING`. For a list of available date ranges, the grammar documentation should be consulted.\n"]]