Method: properties.acknowledgeUserDataCollection
אישור התנאים של איסוף נתוני המשתמשים בנכס שצוין.
צריך להשלים את האישור הזה (בממשק המשתמש של Google Analytics או דרך ה-API הזה) לפני שאפשר ליצור משאבים מסוג MeasurementProtocolSecret.
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{property=properties/*}:acknowledgeUserDataCollection
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
property |
string
חובה. הנכס שעבורו רוצים לאשר את איסוף נתוני המשתמשים.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"acknowledgement": string
} |
שדות |
acknowledgement |
string
חובה. אישור לכך שהמתקשר בשיטה הזו מבין את התנאים לאיסוף נתוני משתמשים. השדה הזה חייב להכיל את הערך המדויק: "אני מאשר/ת שבנכס האתר ו/או האפליקציה שלי קיימות הודעות הגילוי הנאות והזכויות הדרושות בנושא פרטיות ושקיבלתי ממשתמשי הקצה את הסכמתם לאיסוף ולעיבוד של הנתונים שלהם, כולל שיוך הנתונים האלה לנתוני הביקורים שמערכת Google Analytics אוספת מהנכס הזה".
|
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יהיה ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-08 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]