AI-generated Key Takeaways
-
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.
Creates a CustomDimension.
HTTP request
POST https://analyticsadmin.googleapis.com/v1alpha/{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