Method: properties.dataStreams.updateEnhancedMeasurementSettings
עדכון ההגדרות של המדידה המשופרת עבור מקור הנתונים הזה. חשוב לזכור: כדי שההגדרות האלה ייכנסו לתוקף, צריך להפעיל מדידה משופרת בשידור.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
enhancedMeasurementSettings.name |
string
פלט בלבד. שם המשאב של הגדרות המדידה המשופרת. פורמט: properties/{property_id}/dataStreams/{dataStream}/enhancedMeasurementSettings. דוגמה: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של EnhancedMeasurementSettings
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של EnhancedMeasurementSettings
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["Updates the enhanced measurement settings for a given data stream within a Google Analytics property."],["Requires the `analytics.edit` OAuth scope for authorization."],["Utilizes an HTTP PATCH request with path and query parameters to identify the data stream and specify the updated fields."],["Includes a request body containing the desired EnhancedMeasurementSettings and responds with the updated settings on success."]]],["This document details how to update enhanced measurement settings for a data stream via a PATCH request. Key actions include using the specified URL with gRPC Transcoding syntax, providing the `enhancedMeasurementSettings.name` in the path, and utilizing the `updateMask` query parameter to define fields for modification. The request body contains `EnhancedMeasurementSettings` and a successful response will also include an instance of `EnhancedMeasurementSettings`. Access requires the `analytics.edit` authorization scope.\n"]]