Class: Google::Apis::DfareportingV3_3::CustomViewabilityMetric

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



4543
4544
4545
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4543

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

Instance Attribute Details

#configurationGoogle::Apis::DfareportingV3_3::CustomViewabilityMetricConfiguration

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



4531
4532
4533
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4531

def configuration
  @configuration
end

#idFixnum

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

Returns:

  • (Fixnum)


4536
4537
4538
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4536

def id
  @id
end

#nameString

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

Returns:

  • (String)


4541
4542
4543
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4541

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4548
4549
4550
4551
4552
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4548

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