Class: Google::Apis::DfareportingV4::CustomViewabilityMetric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/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.



5076
5077
5078
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5076

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

Instance Attribute Details

#configurationGoogle::Apis::DfareportingV4::CustomViewabilityMetricConfiguration

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



5064
5065
5066
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5064

def configuration
  @configuration
end

#idFixnum

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

Returns:

  • (Fixnum)


5069
5070
5071
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5069

def id
  @id
end

#nameString

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

Returns:

  • (String)


5074
5075
5076
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5074

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5081
5082
5083
5084
5085
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5081

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