class Google::Apis::DfareportingV3_4::CreativeRotation

Creative Rotation.

Attributes

creative_assignments[RW]

Creative assignments in this creative rotation. Corresponds to the JSON property `creativeAssignments` @return [Array<Google::Apis::DfareportingV3_4::CreativeAssignment>]

creative_optimization_configuration_id[RW]

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` @return [Fixnum]

type[RW]

Type of creative rotation. Can be used to specify whether to use sequential or random rotation. Corresponds to the JSON property `type` @return [String]

weight_calculation_strategy[RW]

Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. Corresponds to the JSON property `weightCalculationStrategy` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_4/classes.rb, line 4547
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_4/classes.rb, line 4552
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