Class: Google::Apis::DfareportingV2_6::CreativeRotation
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_6::CreativeRotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/representations.rb
Overview
Creative Rotation.
Instance Attribute Summary collapse
-
#creative_assignments ⇒ Array<Google::Apis::DfareportingV2_6::CreativeAssignment>
Creative assignments in this creative rotation.
-
#creative_optimization_configuration_id ⇒ Fixnum
Creative optimization configuration that is used by this ad.
-
#type ⇒ String
Type of creative rotation.
-
#weight_calculation_strategy ⇒ String
Strategy for calculating weights.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeRotation
constructor
A new instance of CreativeRotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreativeRotation
Returns a new instance of CreativeRotation
4136 4137 4138 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creative_assignments ⇒ Array<Google::Apis::DfareportingV2_6::CreativeAssignment>
Creative assignments in this creative rotation.
Corresponds to the JSON property creativeAssignments
4115 4116 4117 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4115 def creative_assignments @creative_assignments end |
#creative_optimization_configuration_id ⇒ Fixnum
Creative optimization configuration that is used by this ad. It should refer
to one of the existing optimization configurations in the ad's campaign. If it
is unset or set to 0, then the campaign's default optimization configuration
will be used for this ad.
Corresponds to the JSON property creativeOptimizationConfigurationId
4123 4124 4125 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4123 def creative_optimization_configuration_id @creative_optimization_configuration_id end |
#type ⇒ String
Type of creative rotation. Can be used to specify whether to use sequential or
random rotation.
Corresponds to the JSON property type
4129 4130 4131 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4129 def type @type end |
#weight_calculation_strategy ⇒ String
Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM.
Corresponds to the JSON property weightCalculationStrategy
4134 4135 4136 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4134 def weight_calculation_strategy @weight_calculation_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4141 4142 4143 4144 4145 4146 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4141 def update!(**args) @creative_assignments = args[:creative_assignments] if args.key?(:creative_assignments) @creative_optimization_configuration_id = args[:creative_optimization_configuration_id] if args.key?(:creative_optimization_configuration_id) @type = args[:type] if args.key?(:type) @weight_calculation_strategy = args[:weight_calculation_strategy] if args.key?(:weight_calculation_strategy) end |