Class: Google::Apis::DfareportingV3_4::CustomViewabilityMetric

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

Custom Viewability Metric

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

Returns a new instance of CustomViewabilityMetric.



5015
5016
5017
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5015

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

Instance Attribute Details

#configurationGoogle::Apis::DfareportingV3_4::CustomViewabilityMetricConfiguration

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



5003
5004
5005
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5003

def configuration
  @configuration
end

#idFixnum

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

Returns:

  • (Fixnum)


5008
5009
5010
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5008

def id
  @id
end

#nameString

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

Returns:

  • (String)


5013
5014
5015
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5013

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5020
5021
5022
5023
5024
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 5020

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