Method: properties.acknowledgeUserDataCollection
אישור התנאים של איסוף נתוני משתמשים בנכס שצוין.
חובה להשלים את האישור הזה (בממשק המשתמש של Google Analytics או באמצעות ה-API הזה) לפני יצירת משאבי MeasurementProtocolSecret.
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{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-09-08 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-08 (שעון UTC)."],[[["This API endpoint is used to acknowledge the terms of user data collection for a specified Google Analytics property."],["Acknowledgement is required before creating MeasurementProtocolSecret resources and involves confirming understanding of data collection and user privacy."],["The request must include a specific acknowledgement phrase stating the user understands the implications of data collection and has necessary user consent."],["The API uses a POST request to a specific endpoint and includes the property ID in the path."],["Upon successful acknowledgement, the response body will be empty."]]],["The core content outlines the process for acknowledging user data collection terms via an API. A `POST` HTTP request to a specific URL is required, including the `property` path parameter. The request body must contain a JSON with the exact `acknowledgement` string confirming understanding of data collection terms. A successful request results in an empty response, requiring `analytics.edit` authorization scope. The acknowledgment must happen to allow resource creation.\n"]]