Method: accounts.getDataSharingSettings

किसी खाते के लिए डेटा शेयर करने की सेटिंग पाना. डेटा शेयर करने की सेटिंग सिंगलटन होती हैं.

एचटीटीपी अनुरोध

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

यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.

पाथ के पैरामीटर

पैरामीटर
name

string

ज़रूरी है. लुकअप के लिए मौजूद सेटिंग का नाम. फ़ॉर्मैट: accounts/{account}/dataSharingSettings उदाहरण: "accounts/1000/dataSharingSettings"

अनुरोध का मुख्य भाग

अनुरोध का मुख्य हिस्सा खाली होना चाहिए.

जवाब का मुख्य भाग

संसाधन मैसेज, Google Analytics खाते की डेटा शेयर करने की सेटिंग को दिखाता है.

अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.

जेएसओएन के काेड में दिखाना
{
  "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