Class: Google::Apis::DfareportingV5::CustomViewabilityMetric

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

Overview

Custom Viewability Metric

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomViewabilityMetric

Returns a new instance of CustomViewabilityMetric.



5246
5247
5248
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5246

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

Instance Attribute Details

#configurationGoogle::Apis::DfareportingV5::CustomViewabilityMetricConfiguration

The attributes, like playtime and percent onscreen, that define the Custom Viewability Metric. Corresponds to the JSON property configuration



5234
5235
5236
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5234

def configuration
  @configuration
end

#idFixnum

ID of the custom viewability metric. Corresponds to the JSON property id

Returns:

  • (Fixnum)


5239
5240
5241
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5239

def id
  @id
end

#nameString

Name of the custom viewability metric. Corresponds to the JSON property name

Returns:

  • (String)


5244
5245
5246
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5244

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5251
5252
5253
5254
5255
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5251

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