Class: Google::Apis::AnalyticsV3::IncludeConditions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analytics_v3/classes.rb,
generated/google/apis/analytics_v3/representations.rb,
generated/google/apis/analytics_v3/representations.rb

Overview

JSON template for an Analytics Remarketing Include Conditions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IncludeConditions

Returns a new instance of IncludeConditions



3421
3422
3423
# File 'generated/google/apis/analytics_v3/classes.rb', line 3421

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#days_to_look_backFixnum

The look-back window lets you specify a time frame for evaluating the behavior that qualifies users for your audience. For example, if your filters include users from Central Asia, and Transactions Greater than 2, and you set the look- back window to 14 days, then any user from Central Asia whose cumulative transactions exceed 2 during the last 14 days is added to the audience. Corresponds to the JSON property daysToLookBack

Returns:

  • (Fixnum)


3397
3398
3399
# File 'generated/google/apis/analytics_v3/classes.rb', line 3397

def days_to_look_back
  @days_to_look_back
end

#is_smart_listBoolean Also known as: is_smart_list?

Boolean indicating whether this segment is a smart list. https://support. google.com/analytics/answer/4628577 Corresponds to the JSON property isSmartList

Returns:

  • (Boolean)


3403
3404
3405
# File 'generated/google/apis/analytics_v3/classes.rb', line 3403

def is_smart_list
  @is_smart_list
end

#kindString

Resource type for include conditions. Corresponds to the JSON property kind

Returns:

  • (String)


3409
3410
3411
# File 'generated/google/apis/analytics_v3/classes.rb', line 3409

def kind
  @kind
end

#membership_duration_daysFixnum

Number of days (in the range 1 to 540) a user remains in the audience. Corresponds to the JSON property membershipDurationDays

Returns:

  • (Fixnum)


3414
3415
3416
# File 'generated/google/apis/analytics_v3/classes.rb', line 3414

def membership_duration_days
  @membership_duration_days
end

#segmentString

The segment condition that will cause a user to be added to an audience. Corresponds to the JSON property segment

Returns:

  • (String)


3419
3420
3421
# File 'generated/google/apis/analytics_v3/classes.rb', line 3419

def segment
  @segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3426
3427
3428
3429
3430
3431
3432
# File 'generated/google/apis/analytics_v3/classes.rb', line 3426

def update!(**args)
  @days_to_look_back = args[:days_to_look_back] if args.key?(:days_to_look_back)
  @is_smart_list = args[:is_smart_list] if args.key?(:is_smart_list)
  @kind = args[:kind] if args.key?(:kind)
  @membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days)
  @segment = args[:segment] if args.key?(:segment)
end