Reference documentation and code samples for the Google Analytics Data V1alpha Client class UserSegmentExclusion.
Specifies which users are excluded in this segment.
Generated from protobuf message google.analytics.data.v1alpha.UserSegmentExclusion
Namespace
Google \ Analytics \ Data \ V1alphaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ user_exclusion_duration |
int
Specifies how long an exclusion will last if a user matches the |
↳ user_exclusion_criteria |
UserSegmentCriteria
If a user meets this condition, the user is excluded from membership in the segment for the |
getUserExclusionDuration
Specifies how long an exclusion will last if a user matches the
userExclusionCriteria.
Optional. If unspecified, userExclusionDuration of
USER_EXCLUSION_TEMPORARY is used.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type UserExclusionDuration. |
setUserExclusionDuration
Specifies how long an exclusion will last if a user matches the
userExclusionCriteria.
Optional. If unspecified, userExclusionDuration of
USER_EXCLUSION_TEMPORARY is used.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type UserExclusionDuration. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in
the segment for the userExclusionDuration.
| Returns | |
|---|---|
| Type | Description |
UserSegmentCriteria|null |
|
hasUserExclusionCriteria
clearUserExclusionCriteria
setUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in
the segment for the userExclusionDuration.
| Parameter | |
|---|---|
| Name | Description |
var |
UserSegmentCriteria
|
| Returns | |
|---|---|
| Type | Description |
$this |
|