Google Analytics Admin V1beta Client - Class DataRetentionSettings (0.12.0)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class DataRetentionSettings.

Settings values for data retention. This is a singleton resource.

Generated from protobuf message google.analytics.admin.v1beta.DataRetentionSettings

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

↳ event_data_retention int

The length of time that event-level data is retained.

↳ reset_user_data_on_new_activity bool

If true, reset the retention period for the user identifier with every event from that user.

getName

Output only. Resource name for this DataRetentionSetting resource.

Format: properties/{property}/dataRetentionSettings

Returns
TypeDescription
string

setName

Output only. Resource name for this DataRetentionSetting resource.

Format: properties/{property}/dataRetentionSettings

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventDataRetention

The length of time that event-level data is retained.

Returns
TypeDescription
int

setEventDataRetention

The length of time that event-level data is retained.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getResetUserDataOnNewActivity

If true, reset the retention period for the user identifier with every event from that user.

Returns
TypeDescription
bool

setResetUserDataOnNewActivity

If true, reset the retention period for the user identifier with every event from that user.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this