Method: properties.customDimensions.create
یک CustomDimension ایجاد می کند.
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customDimensions
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. فرمت مثال: properties/1234 |
درخواست بدن
بدنه درخواست شامل نمونه ای از CustomDimension
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه جدید از CustomDimension
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
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 بهوقت ساعت هماهنگ جهانی."],[[["Creates a new CustomDimension within a specified Google Analytics 4 property."],["Requires `analytics.edit` OAuth scope for authorization."],["Utilizes an HTTP POST request to the provided URL with property ID as a path parameter."],["Request body should contain a CustomDimension object, as detailed in the provided documentation link."],["Successful response returns the newly created CustomDimension object."]]],["A `CustomDimension` is created via a POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customDimensions`, using gRPC Transcoding syntax. The `parent` path parameter (e.g., `properties/1234`) is required. The request body must include a `CustomDimension` instance. A successful response contains the newly created `CustomDimension`. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]