取得帳戶的資料共用設定。資料共用設定為單例模式。
HTTP 要求
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*/dataSharingSettings}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name |
必要欄位。要查詢的設定名稱。格式:accounts/{account}/dataShareSettings 範例:「accounts/1000/dataShareSettings」 |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體即會包含具有以下結構的資料:
代表 Google Analytics (分析) 帳戶資料共用設定的資源訊息。
JSON 表示法 |
---|
{ "name": string, "sharingWithGoogleSupportEnabled": boolean, "sharingWithGoogleAssignedSalesEnabled": boolean, "sharingWithGoogleAnySalesEnabled": boolean, "sharingWithGoogleProductsEnabled": boolean, "sharingWithOthersEnabled": boolean } |
欄位 | |
---|---|
name |
僅供輸出。資源名稱。格式:accounts/{account}/dataShareSettings 範例:「accounts/1000/dataShareSettings」 |
sharingWithGoogleSupportEnabled |
允許 Google 存取資料以協助排解問題。 |
sharingWithGoogleAssignedSalesEnabled |
允許指派給客戶的 Google 銷售團隊存取資料,以便調整設定以改善成效。啟用後,銷售團隊限制仍然適用。 |
sharingWithGoogleAnySalesEnabled |
允許任何 Google 銷售團隊存取資料,並提出設定變更建議,以改善成效。 |
sharingWithGoogleProductsEnabled |
允許 Google 使用這些資料改善其他 Google 產品或服務。 |
sharingWithOthersEnabled |
允許 Google 以匿名方式將匯總資料與他人分享。 |
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit