Class: Google::Apis::DfareportingV4::CreativeRotation

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 Rotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeRotation

Returns a new instance of CreativeRotation.



4901
4902
4903
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4901

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

Instance Attribute Details

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

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



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

def creative_assignments
  @creative_assignments
end

#creative_optimization_configuration_idFixnum

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:

  • (Fixnum)


4888
4889
4890
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4888

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)


4894
4895
4896
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4894

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)


4899
4900
4901
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4899

def weight_calculation_strategy
  @weight_calculation_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4906
4907
4908
4909
4910
4911
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4906

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