Method: properties.customDimensions.create
یک CustomDimension ایجاد می کند.
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{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 `https://www.googleapis.com/auth/analytics.edit` authorization scope for execution."],["Utilizes an HTTP POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions`, accepting a CustomDimension object in the request body."],["If successful, the response returns the newly created CustomDimension object."]]],["A `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions` creates a CustomDimension. The `parent` path parameter, formatted as `properties/1234`, is required. The request body must include a `CustomDimension` instance. Upon success, a newly created `CustomDimension` instance is returned in the response. This action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization.\n"]]