Class: Google::Apis::DoubleclickbidmanagerV1_1::ChannelGrouping

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

Overview

A channel grouping defines a set of rules that can be used to categorize events in a path report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelGrouping

Returns a new instance of ChannelGrouping.



47
48
49
# File 'lib/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 47

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

Instance Attribute Details

#fallback_nameString

The name to apply to an event that does not match any of the rules in the channel grouping. Corresponds to the JSON property fallbackName

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 34

def fallback_name
  @fallback_name
end

#nameString

Channel Grouping name. Corresponds to the JSON property name

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 39

def name
  @name
end

#rulesArray<Google::Apis::DoubleclickbidmanagerV1_1::Rule>

Rules within Channel Grouping. There is a limit of 100 rules that can be set per channel grouping. Corresponds to the JSON property rules



45
46
47
# File 'lib/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 45

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52
53
54
55
56
# File 'lib/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 52

def update!(**args)
  @fallback_name = args[:fallback_name] if args.key?(:fallback_name)
  @name = args[:name] if args.key?(:name)
  @rules = args[:rules] if args.key?(:rules)
end