Class: Google::Apis::DfareportingV2_7::OptimizationActivity

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

Overview

Creative optimization activity.

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

Returns a new instance of OptimizationActivity



7471
7472
7473
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 7471

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

Instance Attribute Details

#floodlight_activity_idFixnum

Floodlight activity ID of this optimization activity. This is a required field. Corresponds to the JSON property floodlightActivityId

Returns:

  • (Fixnum)


7457
7458
7459
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 7457

def floodlight_activity_id
  @floodlight_activity_id
end

#floodlight_activity_id_dimension_valueGoogle::Apis::DfareportingV2_7::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property floodlightActivityIdDimensionValue



7462
7463
7464
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 7462

def floodlight_activity_id_dimension_value
  @floodlight_activity_id_dimension_value
end

#weightFixnum

Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. Corresponds to the JSON property weight

Returns:

  • (Fixnum)


7469
7470
7471
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 7469

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7476
7477
7478
7479
7480
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 7476

def update!(**args)
  @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id)
  @floodlight_activity_id_dimension_value = args[:floodlight_activity_id_dimension_value] if args.key?(:floodlight_activity_id_dimension_value)
  @weight = args[:weight] if args.key?(:weight)
end