Class: Google::Apis::DfareportingV2_1::CreativeRotation
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::CreativeRotation
- 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 Rotation.
Instance Attribute Summary collapse
-
#creative_assignments ⇒ Array<Google::Apis::DfareportingV2_1::CreativeAssignment>
Creative assignments in this creative rotation.
-
#creative_optimization_configuration_id ⇒ String
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::Hashable
Constructor Details
#initialize(**args) ⇒ CreativeRotation
Returns a new instance of CreativeRotation.
3744 3745 3746 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3744 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creative_assignments ⇒ Array<Google::Apis::DfareportingV2_1::CreativeAssignment>
Creative assignments in this creative rotation.
Corresponds to the JSON property creativeAssignments
3723 3724 3725 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3723 def creative_assignments @creative_assignments end |
#creative_optimization_configuration_id ⇒ String
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
3731 3732 3733 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3731 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
3737 3738 3739 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3737 def type @type end |
#weight_calculation_strategy ⇒ String
Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM.
Corresponds to the JSON property weightCalculationStrategy
3742 3743 3744 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3742 def weight_calculation_strategy @weight_calculation_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3749 3750 3751 3752 3753 3754 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3749 def update!(**args) @creative_assignments = args[:creative_assignments] unless args[:creative_assignments].nil? @creative_optimization_configuration_id = args[:creative_optimization_configuration_id] unless args[:creative_optimization_configuration_id].nil? @type = args[:type] unless args[:type].nil? @weight_calculation_strategy = args[:weight_calculation_strategy] unless args[:weight_calculation_strategy].nil? end |