Reference documentation and code samples for the Google Analytics Admin V1alpha Client class AudienceDimensionOrMetricFilter.
A specific filter for a single dimension or metric.
Generated from protobuf message google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ string_filter |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter
A filter for a string-type dimension that matches a particular pattern. |
↳ in_list_filter |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter
A filter for a string dimension that matches a particular list of options. |
↳ numeric_filter |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter
A filter for numeric or date values on a dimension or metric. |
↳ between_filter |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter
A filter for numeric or date values between certain values on a dimension or metric. |
↳ field_name |
string
Required. Immutable. The dimension name or metric name to filter. |
↳ at_any_point_in_time |
bool
Optional. Indicates whether this filter needs dynamic evaluation or not. If set to true, users join the Audience if they ever met the condition (static evaluation). If unset or set to false, user evaluation for an Audience is dynamic; users are added to an Audience when they meet the conditions and then removed when they no longer meet them. This can only be set when Audience scope is ACROSS_ALL_SESSIONS. |
↳ in_any_n_day_period |
int
Optional. If set, specifies the time window for which to evaluate data in number of days. If not set, then audience data is evaluated against lifetime data (i.e., infinite time window). For example, if set to 1 day, only the current day's data is evaluated. The reference point is the current day when at_any_point_in_time is unset or false. It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be greater than 60 days. |
getStringFilter
A filter for a string-type dimension that matches a particular pattern.
Returns | |
---|---|
Type | Description |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter|null |
hasStringFilter
setStringFilter
A filter for a string-type dimension that matches a particular pattern.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter
|
Returns | |
---|---|
Type | Description |
$this |
getInListFilter
A filter for a string dimension that matches a particular list of options.
Returns | |
---|---|
Type | Description |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter|null |
hasInListFilter
setInListFilter
A filter for a string dimension that matches a particular list of options.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter
|
Returns | |
---|---|
Type | Description |
$this |
getNumericFilter
A filter for numeric or date values on a dimension or metric.
Returns | |
---|---|
Type | Description |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter|null |
hasNumericFilter
setNumericFilter
A filter for numeric or date values on a dimension or metric.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter
|
Returns | |
---|---|
Type | Description |
$this |
getBetweenFilter
A filter for numeric or date values between certain values on a dimension or metric.
Returns | |
---|---|
Type | Description |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter|null |
hasBetweenFilter
setBetweenFilter
A filter for numeric or date values between certain values on a dimension or metric.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter
|
Returns | |
---|---|
Type | Description |
$this |
getFieldName
Required. Immutable. The dimension name or metric name to filter.
Returns | |
---|---|
Type | Description |
string |
setFieldName
Required. Immutable. The dimension name or metric name to filter.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAtAnyPointInTime
Optional. Indicates whether this filter needs dynamic evaluation or not. If set to true, users join the Audience if they ever met the condition (static evaluation). If unset or set to false, user evaluation for an Audience is dynamic; users are added to an Audience when they meet the conditions and then removed when they no longer meet them.
This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
Returns | |
---|---|
Type | Description |
bool |
setAtAnyPointInTime
Optional. Indicates whether this filter needs dynamic evaluation or not. If set to true, users join the Audience if they ever met the condition (static evaluation). If unset or set to false, user evaluation for an Audience is dynamic; users are added to an Audience when they meet the conditions and then removed when they no longer meet them.
This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getInAnyNDayPeriod
Optional. If set, specifies the time window for which to evaluate data in number of days. If not set, then audience data is evaluated against lifetime data (i.e., infinite time window).
For example, if set to 1 day, only the current day's data is evaluated. The reference point is the current day when at_any_point_in_time is unset or false. It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be greater than 60 days.
Returns | |
---|---|
Type | Description |
int |
setInAnyNDayPeriod
Optional. If set, specifies the time window for which to evaluate data in number of days. If not set, then audience data is evaluated against lifetime data (i.e., infinite time window).
For example, if set to 1 day, only the current day's data is evaluated. The reference point is the current day when at_any_point_in_time is unset or false. It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be greater than 60 days.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getOneFilter
Returns | |
---|---|
Type | Description |
string |