यह किसी प्रॉपर्टी के लिए, उपयोगकर्ता के डेटा को इकट्ठा करने की शर्तों को स्वीकार करता है.
यह सहमति Google Analytics यूज़र इंटरफ़ेस (यूआई) में या इस एपीआई के ज़रिए पूरी होनी चाहिए. इसके बाद ही, MeasurementProtocolSecret संसाधन बनाए जा सकते हैं.
एचटीटीपी अनुरोध
POST https://analyticsadmin.googleapis.com/v1beta/{property=properties/*}:acknowledgeUserDataCollection
ज़रूरी है. वह प्रॉपर्टी जिसके लिए, उपयोगकर्ता के डेटा इकट्ठा किए जाने की पुष्टि करनी है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना
{"acknowledgement": string}
फ़ील्ड
acknowledgement
string
ज़रूरी है. इस तरीके का इस्तेमाल करने वाले व्यक्ति की ओर से यह स्वीकार करना कि वह उपयोगकर्ता के डेटा इकट्ठा करने की शर्तों को समझता है.
इस फ़ील्ड में यह सटीक वैल्यू होनी चाहिए: "मुझे यह स्वीकार है कि मेरे असली उपयोगकर्ताओं ने अपनी निजता ज़ाहिर करने के अधिकार मुझे दिए हैं. इनमें उपयोगकर्ताओं के डेटा को इकट्ठा और प्रोसेस करने का अधिकार शामिल है. इन अधिकारों में, मेरी वेबसाइट पर आने वाले लोगों की जानकारी के साथ इस डेटा को जोड़ना भी शामिल है. Google Analytics यह जानकारी, मेरी साइट और/या ऐप्लिकेशन प्रॉपर्टी से हासिल करता है."
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, तो जवाब का मुख्य हिस्सा खाली होता है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया."],[[["This API endpoint acknowledges user data collection for a specified Google Analytics property."],["It requires a specific acknowledgement phrase confirming the user's understanding of data collection terms."],["Users need the `analytics.edit` OAuth scope for authorization."],["A successful request results in an empty response body."],["The request body includes an `acknowledgement` field containing the required phrase."]]],["This API endpoint `acknowledgeUserDataCollection` requires a POST HTTP request to acknowledge user data collection for a specified property. The request URL includes a required `property` path parameter. The request body needs a JSON object with an `acknowledgement` field. This field must contain a specific string confirming understanding of data collection terms. Successful requests return an empty response. Authorization requires the `analytics.edit` scope. The action of acknowledgment is required before creating MeasurementProtocolSecret resources.\n"]]