Method: properties.conversionEvents.patch
האפשרות הזו הוצאה משימוש. במקום זאת, צריך להשתמש ב-UpdateKeyEvent
. עדכון אירוע המרה עם המאפיינים שצוינו.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{conversionEvent.name=properties/*/conversionEvents/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
conversionEvent.name |
string
פלט בלבד. שם המשאב של אירוע ההמרה הזה. Format: properties/{property}/conversionEvents/{conversionEvent}
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של ConversionEvent
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של ConversionEvent
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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 deprecated item updates a conversion event with specified attributes using a PATCH request."],["The request requires specifying the `conversionEvent.name` in the path and uses the `updateMask` query parameter to indicate fields to be updated."],["The request body and successful response body both contain a `ConversionEvent` instance."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document outlines the process for updating a conversion event using a `PATCH` HTTP request to a specified URL. Key actions include defining the `conversionEvent.name` path parameter and utilizing the `updateMask` query parameter to select fields for modification. The request body, containing a `ConversionEvent` instance, provides the updated data, and upon success, the response also returns a `ConversionEvent` instance. Authorization requires the `analytics.edit` OAuth scope. There is also mention that the item is deprecated.\n"]]