版本管理
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本指南說明 Merchant API 如何處理版本管理、發布作業,以及不同版本的生命週期。
版本管理架構
Merchant API 採用子 API 層級的版本管理策略。也就是說,每個 API (例如 Merchant API 中的產品) 都會有自己的版本生命週期。
穩定版子 API 版本:如果子 API 處於穩定版,則其所有方法都處於穩定版。穩定的子 API 版本會以 vX 表示 (例如 v1、v2)。這些是可用於正式環境的主要版本。
Alpha 子 API 版本:如果子 API 處於 Alpha 階段,則所有方法都會處於 Alpha 階段。Alpha 版子 API 會以 vXalpha 表示 (例如 v1alpha、v2alpha)。這些版本包含實驗性質的搶先體驗功能,供您測試及快速疊代。Alpha 版不保證穩定性,也沒有明確的生命週期,且可能在 30 天的通知期後變更或停用。
版本變更
淘汰政策
我們會定期淘汰舊版的 Merchant 子 API。自官方發布淘汰公告起,穩定版主要版本 (vX) 的淘汰期限為 12 個月。
舉例來說,如果我們在 2026 年 1 月 15 日淘汰產品子 API 第 1 版,該版本最快會在 2027 年 1 月 15 日停用。這個日期過後,您將無法再使用舊版子 API。
子 API 版本和生命週期狀態
下表列出 Merchant API 各個子 API 的最新版本:
子 API |
版本 |
狀態 |
帳戶 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
轉換次數 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
資料來源 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
廣告空間 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
解決問題 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
店面動態饋給合作夥伴 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
通知 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
訂單追蹤 | v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
產品 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
Product Studio |
v1alpha |
使用中 |
促銷活動
|
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
配額 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
報告 |
v1 v1beta |
有效 將於 2026 年 2 月 28 日停用 |
評論 |
v1alpha v1 beta |
有效 將於 2026 年 2 月 28 日停用 |
最佳做法
- 請定期查看版本資訊和最新更新,瞭解新版本、重大更新、改良項目,以及子 API 的推出和淘汰公告。
- 如果子 API 有兩個以上的穩定版本,建議您一律使用最新版本。
- 設計應用程式時,請務必妥善處理各種子 API 錯誤,包括網路問題、速率限制,以及新版子 API 可能導入的新錯誤代碼或訊息。
- 請勿等到子 API 版本即將淘汰,才開始規劃升級作業。新版本一推出,請立即開始評估及測試。
- 如要提出功能要求或對子 API 藍圖有任何疑問,請與我們聯絡並提供意見回饋。如要瞭解如何與 Merchant API 團隊聯絡以取得技術支援,請參閱「取得 Merchant API 相關協助」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-22 (世界標準時間)。
[null,null,["上次更新時間:2025-08-22 (世界標準時間)。"],[],[],null,["# Versioning\n\nThis guide explains how Merchant API handles versioning, releases, and the\nlifecycle of its different versions.\n\nVersioning scheme\n-----------------\n\nMerchant API employs a versioning strategy at the sub-API level. This means that\neach API, for example Products within the Merchant API, will have its own\nversion lifecycle.\n\n### Versioning format and presentation\n\n- **Stable sub-API versions:** If a sub-API is in a stable version then all\n its methods are in a stable version. A stable sub-API version is represented\n as **vX** (for example, **v1** , **v2**). These are production-ready major\n versions.\n\n- **Alpha sub-API versions:** If a sub-API is in an alpha, then all its\n methods are in alpha. An alpha sub-API version is represented as\n **vXalpha** (for example, **v1alpha** , **v2alpha**). They contain\n experimental, early access features intended for testing and rapid\n iteration. Alpha versions come with no stability assurance, have no defined\n lifespan and can be changed or discontinued with a notice period of 30 days.\n\n### Version changes\n\n- **Major version increments** (for example, v1 to v2): These signal\n backward-incompatible and breaking changes, which require developer action.\n Only breaking changes of stable sub-APIs will have a new version number. For\n example, v1 to v2.\n\n- **Minor changes:** Backward compatible additions or fixes are presented as\n changes to the existing major version. Such changes will be detailed in the\n release notes for that major version. Non-breaking additions to a sub-API will\n be released to the alpha channel of the latest stable version or directly to\n the latest stable version.\n\nSunset policy\n-------------\n\nWe periodically sunset older Merchant sub-API versions. We commit to a 12-month\ndeprecation window for stable major versions (vX), starting from the official\ndeprecation announcement.\n\nFor example, if we deprecate v1 of the Products sub-API on January 15, 2026, it\nwill sunset no earlier than January 15, 2027. Beyond this date, the earlier\nversion of the sub-API will no longer be available for use.\n\nSub-API version and lifecycle status\n------------------------------------\n\nThe following table lists the latest versions of each sub-API of Merchant API:\n\n| Sub-API | Versions | Status |\n|-------------------------|----------------|-------------------------------------------|\n| Accounts | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Conversions | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Data sources | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Inventories | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Issue resolution | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Local feeds partnership | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Notifications | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Order tracking | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Products | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Product Studio | v1alpha | Active |\n| Promotions | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Quota | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Reporting | v1 v1beta | Active To be discontinued on Feb 28, 2026 |\n| Reviews | v1alpha v1beta | Active To be discontinued on Feb 28, 2026 |\n\nBest practices\n--------------\n\n- Regularly check the release notes and [latest\n updates](/merchant/api/latest-updates) for new versions, major updates, improvements, and announcements about sub-API launches and deprecations.\n- If a sub-API has two or more stable versions, we suggest using the latest version at all times.\n- Design your application to gracefully handle various sub-API errors, including network issues, rate limits, and the new error codes or messages that might be introduced with newer sub-API versions.\n- Don't wait until a sub-API version is about to be sunset to start planning your upgrade. Begin evaluating and testing new versions as soon as they are available.\n- For feature requests or concerns about a sub-API roadmap, [reach out to us\n with questions or feedback](/merchant/api/support/give-feedback). For information about how to contact the Merchant API team for technical support, see [Get help with Merchant API](/merchant/api/support/get-help)."]]