Method: properties.customDimensions.create

  • This page details how to create a CustomDimension using a POST request to the specified URL.

  • The request requires a parent path parameter indicating the property to which the custom dimension will be added.

  • The request body must contain an instance of a CustomDimension object.

  • A successful response will return the newly created CustomDimension object.

  • The request requires the https://www.googleapis.com/auth/analytics.edit authorization scope.

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