REST Resource: properties.subpropertyEventFilters

Resource: SubpropertyEventFilter

A resource message representing a GA4 Subproperty event filter.

JSON representation
{
  "name": string,
  "filterClauses": [
    {
      object (SubpropertyEventFilterClause)
    }
  ],
  "applyToProperty": string
}
Fields
name

string

Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678

filterClauses[]

object (SubpropertyEventFilterClause)

Required. Unordered list. Filter clauses that define the SubpropertyEventFilter. All clauses are AND'ed together to determine what data is sent to the subproperty.

applyToProperty

string

Immutable. Resource name of the Subproperty that uses this filter.

SubpropertyEventFilterClause

A clause for defining a filter. A filter may be inclusive (events satisfying the filter clause are included in the subproperty's data) or exclusive (events satisfying the filter clause are excluded from the subproperty's data).

JSON representation
{
  "filterClauseType": enum (FilterClauseType),
  "filterExpression": {
    object (SubpropertyEventFilterExpression)
  }
}
Fields
filterClauseType

enum (FilterClauseType)

Required. The type for the filter clause.

filterExpression

object (SubpropertyEventFilterExpression)

Required. The logical expression for what events are sent to the subproperty.

FilterClauseType

Specifies whether this is an include or exclude filter clause.

Enums
FILTER_CLAUSE_TYPE_UNSPECIFIED Filter clause type unknown or not specified.
INCLUDE Events will be included in the Sub property if the filter clause is met.
EXCLUDE Events will be excluded from the Sub property if the filter clause is met.

SubpropertyEventFilterExpression

A logical expression of Subproperty event filters.

JSON representation
{

  // Union field expr can be only one of the following:
  "orGroup": {
    object (SubpropertyEventFilterExpressionList)
  },
  "notExpression": {
    object (SubpropertyEventFilterExpression)
  },
  "filterCondition": {
    object (SubpropertyEventFilterCondition)
  }
  // End of list of possible types for union field expr.
}
Fields
Union field expr. The expression applied to a filter. expr can be only one of the following:
orGroup

object (SubpropertyEventFilterExpressionList)

A list of expressions to OR’ed together. Must only contain notExpression or filterCondition expressions.

notExpression

object (SubpropertyEventFilterExpression)

A filter expression to be NOT'ed (inverted, complemented). It can only include a filter. This cannot be set on the top level SubpropertyEventFilterExpression.

filterCondition

object (SubpropertyEventFilterCondition)

Creates a filter that matches a specific event. This cannot be set on the top level SubpropertyEventFilterExpression.

SubpropertyEventFilterExpressionList

A list of Subproperty event filter expressions.

JSON representation
{
  "filterExpressions": [
    {
      object (SubpropertyEventFilterExpression)
    }
  ]
}
Fields
filterExpressions[]

object (SubpropertyEventFilterExpression)

Required. Unordered list. A list of Subproperty event filter expressions

SubpropertyEventFilterCondition

A specific filter expression

JSON representation
{
  "fieldName": string,

  // Union field one_filter can be only one of the following:
  "nullFilter": boolean,
  "stringFilter": {
    object (StringFilter)
  }
  // End of list of possible types for union field one_filter.
}
Fields
fieldName

string

Required. The field that is being filtered.

Union field one_filter.

one_filter can be only one of the following:

nullFilter

boolean

A filter for null values.

stringFilter

object (StringFilter)

A filter for a string-type dimension that matches a particular pattern.

StringFilter

A filter for a string-type dimension that matches a particular pattern.

JSON representation
{
  "matchType": enum (MatchType),
  "value": string,
  "caseSensitive": boolean
}
Fields
matchType

enum (MatchType)

Required. The match type for the string filter.

value

string

Required. The string value used for the matching.

caseSensitive

boolean

Optional. If true, the string value is case sensitive. If false, the match is case-insensitive.

MatchType

How the filter will be used to determine a match.

Enums
MATCH_TYPE_UNSPECIFIED Match type unknown or not specified.
EXACT Exact match of the string value.
BEGINS_WITH Begins with the string value.
ENDS_WITH Ends with the string value.
CONTAINS Contains the string value.
FULL_REGEXP Full regular expression matches with the string value.
PARTIAL_REGEXP Partial regular expression matches with the string value.

Methods

create

Creates a subproperty Event Filter.

delete

Deletes a subproperty event filter.

get

Lookup for a single subproperty Event Filter.

list

List all subproperty Event Filters on a property.

patch

Updates a subproperty Event Filter.