Method: properties.calculatedMetrics.delete
تؤدي هذه الوظيفة إلى حذف مقياس محسوب على موقع.
طلب HTTP
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
name |
string
مطلوب. اسم CalculatedMetric المطلوب حذفه التنسيق: properties/{property_id}/calculatedMetrics/{calculatedMetricId} مثال: properties/1234/calculatedMetrics/Metric01
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يكون نص الاستجابة هو عنصر JSON فارغ.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Deletes a specific CalculatedMetric associated with a Google Analytics 4 property."],["Requires specifying the property and CalculatedMetric IDs in the request URL path."],["Employs an HTTP DELETE request with an empty body, signifying data removal intention."],["Successful deletion results in an empty response body, confirming action completion."],["Needs authorization with the 'analytics.edit' scope for permission to modify property data."]]],["This document outlines how to delete a CalculatedMetric on a property via an HTTP DELETE request. The request URL requires the `name` path parameter, formatted as `properties/{property_id}/calculatedMetrics/{calculatedMetricId}`. The request body must be empty. A successful deletion returns an empty JSON object. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The resource uses gRPC Transcoding syntax.\n"]]