Class: Google::Apis::DfareportingV2_1::CreativeOptimizationConfiguration

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

Overview

Creative optimization settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreativeOptimizationConfiguration

Returns a new instance of CreativeOptimizationConfiguration



3703
3704
3705
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3703

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

Instance Attribute Details

#idString

ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. Corresponds to the JSON property id

Returns:

  • (String)


3685
3686
3687
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3685

def id
  @id
end

#nameString

Name of this creative optimization config. This is a required field and must be less than 129 characters long. Corresponds to the JSON property name

Returns:

  • (String)


3691
3692
3693
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3691

def name
  @name
end

#optimization_activitysArray<Google::Apis::DfareportingV2_1::OptimizationActivity>

List of optimization activities associated with this configuration. Corresponds to the JSON property optimizationActivitys



3696
3697
3698
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3696

def optimization_activitys
  @optimization_activitys
end

#optimization_modelString

Optimization model for this configuration. Corresponds to the JSON property optimizationModel

Returns:

  • (String)


3701
3702
3703
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3701

def optimization_model
  @optimization_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3708
3709
3710
3711
3712
3713
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3708

def update!(**args)
  @id = args[:id] unless args[:id].nil?
  @name = args[:name] unless args[:name].nil?
  @optimization_activitys = args[:optimization_activitys] unless args[:optimization_activitys].nil?
  @optimization_model = args[:optimization_model] unless args[:optimization_model].nil?
end