取得帳戶的資料共用設定。資料共用設定是單例模式。
HTTP 要求
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*/dataSharingSettings}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name |
必要,要查詢的設定名稱。格式:accounts/{account}/datasharingSettings 範例:"accounts/1000/datasharingSettings" |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體即會包含具有以下結構的資料:
代表 Google Analytics (分析) 帳戶資料共用設定的資源資源訊息。
JSON 表示法 |
---|
{ "name": string, "sharingWithGoogleSupportEnabled": boolean, "sharingWithGoogleAssignedSalesEnabled": boolean, "sharingWithGoogleAnySalesEnabled": boolean, "sharingWithGoogleProductsEnabled": boolean, "sharingWithOthersEnabled": boolean } |
欄位 | |
---|---|
name |
僅供輸出。資源名稱。格式:accounts/{account}/datasharingSettings 範例:"accounts/1000/datasharingSettings" |
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