Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
OAuth 總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
應用程式傳送至商家檔案 API 的每項要求都必須包含授權權杖。授權權杖可向 Google 識別使用者或應用程式,讓使用者或應用程式存取商家檔案 API。您的應用程式必須使用 OAuth 2.0 通訊協定對要求進行授權。
OAuth 設定指南說明瞭您可以在平台上實作 OAuth 2.0 的各種方法。Google Identity Platform 提供 Google 登入和 OAuth 功能,這兩項功能會在本指南中使用。
實作 OAuth 2.0 可帶來下列優點:
- 保護業務擁有者的資料存取權。
- 商家擁有者登入 Google 帳戶時,建立其身分。
- 確認合作夥伴平台或應用程式可在獲得商家業主明確同意的情況下,存取及修改地點資料。擁有者之後可以撤銷這項存取權。
- 建立合作夥伴平台的 ID。
- 讓合作夥伴平台可代表商家擁有者執行線上或離線動作。包括回覆評論、建立貼文和更新選單項目。
- 允許以透明的方式進行多步驟工作流程,例如管理邀請。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eBusiness Profile API requests require an authorization token obtained through OAuth 2.0 for user or application identification.\u003c/p\u003e\n"],["\u003cp\u003eOAuth 2.0 implementation safeguards business data, verifies owner identity, and grants controlled access to partner platforms.\u003c/p\u003e\n"],["\u003cp\u003ePartner platforms can utilize OAuth 2.0 to perform actions on behalf of the business owner, including managing reviews, posts, and menus, with the owner's explicit and revocable consent.\u003c/p\u003e\n"]]],[],null,["# OAuth overview\n\nEvery request that your application sends to the Business Profile APIs must include an\nauthorization token. The authorization token identifies the user or the application to Google,\nwhich allows access to the Business Profile APIs. Your application must use\n[OAuth 2.0](/identity/protocols/OAuth2) protocol to authorize requests.\n\nThe\n[OAuth setup](/my-business/content/oauth-setup)\nguide explains the different methods that you can use to implement OAuth 2.0 on your\nplatform. The [Google Identity Platform](/identity/choose-auth) provides the Google\nSign-In and OAuth functionality that's used throughout this guide.\n\nThe implementation of OAuth 2.0 provides the following benefits:\n\n- Protects access to the business owner's data.\n- Establishes the identity of the business owner when they sign in to their Google Account.\n- Establishes that a partner platform or application can access and modify location data with explicit consent from the business owner. The owner can later revoke this access.\n- Establishes the identity of the partner platform.\n- Enables partner platforms to perform online or offline actions on behalf of the business owner. This includes responses to reviews, creation of posts, and updates to menu items.\n- Allows multi-step workflows with multiple participants to be made transparent, such as management invitations."]]