Method: accounts.getDataSharingSettings

รับการตั้งค่าการแชร์ข้อมูลในบัญชี การตั้งค่าการแชร์ข้อมูลเป็นรายการเดียว

คำขอ HTTP

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

URL ใช้ไวยากรณ์การแปลง 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