Method: properties.customMetrics.create
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. פורמט לדוגמה: properties/1234
|
גוף הבקשה
גוף הבקשה מכיל מופע של CustomMetric
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של CustomMetric
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-05-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-05-06 (שעון UTC)."],[[["Creates a CustomMetric using an HTTP POST request to the specified endpoint."],["Requires `parent` as a path parameter specifying the property (e.g., `properties/1234`)."],["The request body should contain a CustomMetric object, as detailed in the provided link."],["A successful response will return the newly created CustomMetric object."],["Requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],[]]