Method: properties.customMetrics.get
جستجو برای یک CustomMetric واحد.
درخواست HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string ضروری. نام CustomMetric برای دریافت. قالب مثال: properties/1234/customMetrics/5678 |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از CustomMetric
است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.readonly
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["Retrieves a single, user-defined metric (CustomMetric) for analysis within a Google Analytics 4 property."],["Requires specifying the complete resource name of the CustomMetric in the request path."],["The response provides comprehensive details about the requested CustomMetric if authorized with appropriate scopes."],["Allows read-only or edit access to the requested metric based on the provided authorization scope."]]],["The core content describes how to retrieve a single `CustomMetric`. A `GET` request is sent to a specified URL using gRPC Transcoding syntax. The `name` parameter, formatted as `properties/*/customMetrics/*`, is required in the URL path. The request body must be empty. A successful response returns a `CustomMetric` instance. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]