Class: Google::Apis::DfareportingV3_4::ListPopulationTerm

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

Overview

Remarketing List Population Rule Term.

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) ⇒ ListPopulationTerm

Returns a new instance of ListPopulationTerm.



7503
7504
7505
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7503

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

Instance Attribute Details

#containsBoolean Also known as: contains?

Will be true if the term should check if the user is in the list and false if the term should check if the user is not in the list. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by default. Corresponds to the JSON property contains

Returns:

  • (Boolean)


7452
7453
7454
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7452

def contains
  @contains
end

#negationBoolean Also known as: negation?

Whether to negate the comparison result of this term during rule evaluation. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Corresponds to the JSON property negation

Returns:

  • (Boolean)


7460
7461
7462
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7460

def negation
  @negation
end

#operatorString

Comparison operator of this term. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Corresponds to the JSON property operator

Returns:

  • (String)


7467
7468
7469
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7467

def operator
  @operator
end

#remarketing_list_idFixnum

ID of the list in question. This field is only relevant when type is set to LIST_MEMBERSHIP_TERM. Corresponds to the JSON property remarketingListId

Returns:

  • (Fixnum)


7473
7474
7475
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7473

def remarketing_list_id
  @remarketing_list_id
end

#typeString

List population term type determines the applicable fields in this object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, variableFriendlyName, operator, value, and negation are applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. If set to REFERRER_TERM then operator, value, and negation are applicable. Corresponds to the JSON property type

Returns:

  • (String)


7482
7483
7484
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7482

def type
  @type
end

#valueString

Literal to compare the variable to. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Corresponds to the JSON property value

Returns:

  • (String)


7488
7489
7490
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7488

def value
  @value
end

#variable_friendly_nameString

Friendly name of this term's variable. This is a read-only, auto-generated field. This field is only relevant when type is left unset or set to CUSTOM_VARIABLE_TERM. Corresponds to the JSON property variableFriendlyName

Returns:

  • (String)


7495
7496
7497
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7495

def variable_friendly_name
  @variable_friendly_name
end

#variable_nameString

Name of the variable (U1, U2, etc.) being compared in this term. This field is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or REFERRER_TERM. Corresponds to the JSON property variableName

Returns:

  • (String)


7501
7502
7503
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7501

def variable_name
  @variable_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 7508

def update!(**args)
  @contains = args[:contains] if args.key?(:contains)
  @negation = args[:negation] if args.key?(:negation)
  @operator = args[:operator] if args.key?(:operator)
  @remarketing_list_id = args[:remarketing_list_id] if args.key?(:remarketing_list_id)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
  @variable_friendly_name = args[:variable_friendly_name] if args.key?(:variable_friendly_name)
  @variable_name = args[:variable_name] if args.key?(:variable_name)
end