Method: accounts.getDataSharingSettings

取得帳戶的資料共用設定。資料共用設定是單例模式。

HTTP 要求

GET https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*/dataSharingSettings}

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
name

string

必填。要查詢的設定名稱。格式:accounts/{account}/dataSharingSettings

範例:accounts/1000/dataSharingSettings

要求主體

要求主體必須為空白。

回應主體

代表 Google Analytics 帳戶資料共用設定的資源訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "name": string,
  "sharingWithGoogleSupportEnabled": boolean,
  "sharingWithGoogleAssignedSalesEnabled": boolean,
  "sharingWithGoogleAnySalesEnabled": boolean,
  "sharingWithGoogleProductsEnabled": boolean,
  "sharingWithOthersEnabled": boolean
}
欄位
name

string

ID。資源名稱。格式:accounts/{account}/dataSharingSettings。範例:「accounts/1000/dataSharingSettings」

sharingWithGoogleSupportEnabled

boolean

允許 Google 技術支援代表在必要時存取您的 Google Analytics 資料和帳戶,以便提供服務及尋求技術問題的解決方案。

這個欄位會對應至 Google Analytics 管理使用者介面中的「技術支援」欄位。

sharingWithGoogleAssignedSalesEnabled

boolean

允許 Google 存取您的 Google Analytics 帳戶資料,包括帳戶使用情形和設定資料、產品支出,以及與 Google Analytics 帳戶連結的使用者,以便 Google 在 Google Analytics 和其他商用 Google 產品中,提供洞察資料、優惠、最佳化建議和最佳化提示,協助您全面發揮 Google 產品的效益。

這個欄位會對應至 Google Analytics 管理使用者介面中的「為貴商家提供的建議」欄位。

sharingWithGoogleAnySalesEnabled
(deprecated)

boolean

已淘汰,這個欄位已停用,一律會傳回 false。

sharingWithGoogleProductsEnabled

boolean

允許 Google 使用資料改善其他 Google 產品或服務。

這個欄位會對應至 Google Analytics 管理 UI 中的「Google 產品和服務」欄位。

sharingWithOthersEnabled

boolean

分享匯總的評估資料,就能啟用預測、模擬資料和基準化等功能,取得更豐富的業務洞察分析。您提供的資料 (包括共用資源的相關資訊) 會經過匯總和去識別化,然後才用來產生業務洞察資料。

這個欄位會對應至 Google Analytics 管理使用者介面中的「根據輸入內容和業務洞察資料建立模型」欄位。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit