Class: Google::Apis::DfareportingV2_5::CreativeOptimizationConfiguration

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



3988
3989
3990
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3988

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)


3970
3971
3972
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3970

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)


3976
3977
3978
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3976

def name
  @name
end

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

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



3981
3982
3983
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3981

def optimization_activitys
  @optimization_activitys
end

#optimization_modelString

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

Returns:

  • (String)


3986
3987
3988
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3986

def optimization_model
  @optimization_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3993
3994
3995
3996
3997
3998
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3993

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