Method: properties.provisionSubproperty
יוצרים נכס משנה ומסנן אירועים של נכס משנה שחל על נכס המשנה שנוצר.
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
שדות |
subproperty |
object (Property )
חובה. נכס המשנה שרוצים ליצור.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
זה שינוי אופציונלי. מסנן האירועים של נכס המשנה שיש ליצור בנכס רגיל.
|
גוף התשובה
הודעת תגובה ל-property.resourceSubproperty RPC.
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
שדות |
subproperty |
object (Property )
נכס המשנה שנוצר.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
מסנן האירועים שנוצר לנכס המשנה.
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-04-02 (שעון UTC).
[null,null,["עדכון אחרון: 2025-04-02 (שעון UTC)."],[[["Provision a new subproperty and an optional subproperty event filter within a Google Analytics property using the `properties.provisionSubproperty` method."],["The request body requires a `subproperty` object and optionally includes a `subpropertyEventFilter` for defining event filtering criteria."],["A successful response returns the created `subproperty` and the `subpropertyEventFilter` if provided."],["This operation requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This content outlines how to provision a subproperty and its event filter using an HTTP POST request. The request, sent to `https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty`, requires a JSON body containing the `subproperty` object and an optional `subpropertyEventFilter` object. Upon success, the response body will include the created `subproperty` and the `subpropertyEventFilter`, as objects. Authorization using the `analytics.edit` scope is required.\n"]]