כדאי לנסות את שרת ה-MCP ל-Google Analytics. אפשר להתקין מ-
GitHub, ולקרוא את
ההודעה לפרטים נוספים.
Method: properties.dataStreams.updateEnhancedMeasurementSettings
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עדכון ההגדרות של המדידה המשופרת של מקור הנתונים הזה. הערה: כדי שההגדרות ייכנסו לתוקף, מקור הנתונים צריך להפעיל מדידה משופרת.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של 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-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון 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"]]