Method: properties.customDimensions.create
HTTP-запрос
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
parent | string Необходимый. Пример формата: свойства/1234. |
Тело запроса
Тело запроса содержит экземпляр CustomDimension
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр CustomDimension
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/analytics.edit
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-25 UTC.
[null,null,["Последнее обновление: 2024-10-25 UTC."],[[["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"]]