Method: properties.updateGoogleSignalsSettings
עדכון ההגדרות של Google Signals בנכס.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{googleSignalsSettings.name=properties/*/googleSignalsSettings}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
googleSignalsSettings.name |
string
פלט בלבד. שם המשאב של ההגדרה הזו. פורמט: properties/{property_id}/googleSignalsSettings. דוגמה: "properties/1000/googleSignalsSettings"
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של GoogleSignalsSettings
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של GoogleSignalsSettings
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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)."],[[["This page explains how to update Google Signals settings for a Google Analytics 4 property using the Google Analytics Admin API."],["The method uses an HTTP PATCH request to a specific endpoint with path and query parameters."],["Developers need to provide an updated GoogleSignalsSettings object in the request body and will receive an updated GoogleSignalsSettings object in the response if successful."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines how to update Google Signals settings for a property using a PATCH request to the specified URL. The request includes a required `updateMask` query parameter to define fields for modification. The `googleSignalsSettings.name` path parameter is used to identify the setting. The request body carries the updated `GoogleSignalsSettings`, and the response mirrors this. Authorization requires the `analytics.edit` OAuth scope. This uses gRPC Transcoding syntax.\n"]]