Method: properties.customDimensions.patch
تعديل CustomDimension على موقع
طلب HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
customDimension.name |
string
النتائج فقط. اسم المورد لمورد CustomDimension هذا. التنسيق: properties/{property}/customDimensions/{customDimension}
|
مَعلمات طلب البحث
المعلمات |
updateMask |
string (FieldMask format)
مطلوب. قائمة الحقول التي سيتم تعديلها ولن يتم تعديل الحقول التي تم حذفها. لاستبدال العنصر بأكمله، استخدِم مسارًا واحدًا مع السلسلة "*" لمطابقة جميع الحقول. هذه قائمة مفصولة بفواصل تتضمّن أسماء حقول مؤهَّلة بالكامل. مثال: "user.displayName,photo"
|
نص الطلب
يحتوي نص الطلب على مثال CustomDimension
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال CustomDimension
.
نطاقات التفويض
يجب توفير نطاق 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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Updates a specified CustomDimension on a Google Analytics 4 property using an HTTP PATCH request."],["The request should target a URL containing the property and CustomDimension identifiers, using gRPC Transcoding syntax."],["Users must provide an `updateMask` query parameter to specify the fields to update within the CustomDimension."],["The request body must contain a CustomDimension object with the desired changes and the response will contain the updated CustomDimension."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document details updating a CustomDimension on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}`. Required parameters include the `customDimension.name` path parameter and the `updateMask` query parameter, which specifies fields to be updated. The request body contains a CustomDimension instance, and the successful response returns an updated CustomDimension instance. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]