Method: properties.customDimensions.create

  • Learn how to create a CustomDimension using an HTTP POST request to the specified analyticsadmin.googleapis.com URL.

  • Understand the required path parameter parent, which specifies the property for which the custom dimension is being created.

  • The request body requires an instance of CustomDimension for successful creation.

  • A successful response body will contain the newly created CustomDimension instance.

  • Creating a custom dimension requires the https://www.googleapis.com/auth/analytics.edit authorization scope.

Creates a CustomDimension.

HTTP request

POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customDimensions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Example format: properties/1234

Request body

The request body contains an instance of CustomDimension.

Response body

If successful, the response body contains a newly created instance of CustomDimension.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/analytics.edit