Class: Google::Apis::DfareportingV2_3::CreativeRotation

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

Overview

Creative Rotation.

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) ⇒ CreativeRotation

Returns a new instance of CreativeRotation.



3796
3797
3798
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3796

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creative_assignmentsArray<Google::Apis::DfareportingV2_3::CreativeAssignment>

Creative assignments in this creative rotation. Corresponds to the JSON property creativeAssignments



3775
3776
3777
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3775

def creative_assignments
  @creative_assignments
end

#creative_optimization_configuration_idString

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

Returns:

  • (String)


3783
3784
3785
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3783

def creative_optimization_configuration_id
  @creative_optimization_configuration_id
end

#typeString

Type of creative rotation. Can be used to specify whether to use sequential or random rotation. Corresponds to the JSON property type

Returns:

  • (String)


3789
3790
3791
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3789

def type
  @type
end

#weight_calculation_strategyString

Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. Corresponds to the JSON property weightCalculationStrategy

Returns:

  • (String)


3794
3795
3796
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3794

def weight_calculation_strategy
  @weight_calculation_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3801
3802
3803
3804
3805
3806
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 3801

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