Class: Google::Apis::DfareportingV4::CreativeOptimizationConfiguration

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

Overview

Creative optimization settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeOptimizationConfiguration

Returns a new instance of CreativeOptimizationConfiguration.



4879
4880
4881
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4879

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)


4861
4862
4863
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4861

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)


4867
4868
4869
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4867

def name
  @name
end

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

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



4872
4873
4874
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4872

def optimization_activitys
  @optimization_activitys
end

#optimization_modelString

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

Returns:

  • (String)


4877
4878
4879
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4877

def optimization_model
  @optimization_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4884
4885
4886
4887
4888
4889
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4884

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