Method: properties.customMetrics.list
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. פורמט לדוגמה: properties/1234
|
פרמטרים של שאילתה
פרמטרים |
pageSize |
integer
המספר המקסימלי של המשאבים להחזרה. אם לא צוין ערך, יוחזרו עד 50 משאבים. הערך המקסימלי הוא 200 (ערכים גבוהים יותר יומרו לערך המקסימלי).
|
pageToken |
string
אסימון דף, שהתקבל משיחה קודמת של customMetrics.list . יש לספק אותו כדי לאחזר את הדף הבא. כשמחלקים את הדפים, כל שאר הפרמטרים שסופקו ל-customMetrics.list חייבים להתאים לקריאה שסיפקה את אסימון הדף.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
הודעת התגובה של RPC מסוג customMetrics.list.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"customMetrics": [
{
object (CustomMetric )
}
],
"nextPageToken": string
} |
שדות |
customMetrics[] |
object (CustomMetric )
רשימה של CustomMetrics.
|
nextPageToken |
string
אסימון שאפשר לשלוח כ-pageToken כדי לאחזר את הדף הבא. אם השדה הזה לא יצוין, לא יהיו דפים נוספים.
|
היקפי הרשאה
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/analytics.readonly
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)."],[[["Lists all the CustomMetrics defined for a Google Analytics 4 property."],["The API request requires specifying the parent property ID and supports pagination for retrieving large result sets."],["The response includes a list of CustomMetrics objects and a token for accessing the next page of results, if available."],["Requires authorization with either read-only or edit access to Google Analytics."]]],["This document details how to list custom metrics for a property using the Google Analytics Admin API. A `GET` HTTP request is sent to a specific URL, including a required `parent` path parameter (e.g., \"properties/1234\"). Optional query parameters `pageSize` (max 200) and `pageToken` are used for pagination. The request body must be empty. A successful response returns a JSON object containing an array of `customMetrics` and an optional `nextPageToken` for retrieving subsequent pages. Authorization requires specific OAuth scopes.\n"]]