AI-generated Key Takeaways
-
This page details how to create a CustomDimension using a POST request to the specified URL.
-
The request requires a
parentpath 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.editauthorization 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 |
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