Method: properties.customDimensions.create

  • 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.

Creates a CustomDimension.

HTTP request

POST https://analyticsadmin.googleapis.com/v1beta/{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