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

僅供輸出。資源名稱。格式:accounts/{account}/datasharingSettings 範例:「accounts/1000/datasharingSettings」

sharingWithGoogleSupportEnabled

boolean

允許 Google 支援團隊存取資料,以協助排解問題。

sharingWithGoogleAssignedSalesEnabled

boolean

允許指派給客戶的 Google 銷售團隊存取資料,以便提供設定變更建議以改善結果。啟用後,銷售團隊限制仍然適用。

sharingWithGoogleAnySalesEnabled

boolean

允許 Google 銷售團隊存取資料,以便提出設定變更建議以改善結果。

sharingWithGoogleProductsEnabled

boolean

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

sharingWithOthersEnabled

boolean

允許 Google 以匿名方式與他人分享資料。

授權範圍

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

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