取得帳戶的資料共用設定。資料共用設定為單例模式。
HTTP 要求
GET https://analyticsadmin.googleapis.com/v1alpha/{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