Method: properties.dataStreams.eventCreateRules.get

  • Retrieves a single, pre-defined EventCreateRule configuration for Google Analytics 4 properties.

  • Requires specifying the full resource name of the desired EventCreateRule within the request path.

  • Utilizes an HTTP GET request, and an empty request body is expected.

  • Successfully retrieving an EventCreateRule returns its configuration details in the response.

  • Appropriate authorization with either read-only or edit access to Google Analytics is necessary.

Lookup for a single EventCreateRule.

HTTP request

GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the EventCreateRule to get. Example format: properties/123/dataStreams/456/eventCreateRules/789

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of EventCreateRule.

Authorization scopes

Requires one of the following OAuth scopes:

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