Class: Google::Apis::DfareportingV2_8::CreativeOptimizationConfiguration

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

Overview

Creative optimization settings.

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

Returns a new instance of CreativeOptimizationConfiguration



4274
4275
4276
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4274

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

Instance Attribute Details

#idFixnum

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:

  • (Fixnum)


4256
4257
4258
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4256

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)


4262
4263
4264
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4262

def name
  @name
end

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

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



4267
4268
4269
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4267

def optimization_activitys
  @optimization_activitys
end

#optimization_modelString

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

Returns:

  • (String)


4272
4273
4274
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4272

def optimization_model
  @optimization_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4279
4280
4281
4282
4283
4284
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4279

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