weightCalculationStrategy property

String? weightCalculationStrategy
getter/setter pair

Strategy for calculating weights.

Used with CREATIVE_ROTATION_TYPE_RANDOM. Possible string values are:

  • "WEIGHT_STRATEGY_EQUAL" : The creative weights should all be equal to 1. This is the default value for all ads with a rotation type of Random.
  • "WEIGHT_STRATEGY_CUSTOM" : The creative weights can be any user provided positive integer.
  • "WEIGHT_STRATEGY_HIGHEST_CTR" : The weights will be automatically calculated giving preference to the creative that has the highest CTR. The CTR for campaigns that are optimized for clicks = clicks/impressions. The CTR for campaigns that are optimized for view-through or click through is sum(activities + floodlight weight)/impressions.
  • "WEIGHT_STRATEGY_OPTIMIZED" : The creative weights will be automatically calculated using a formula that could not possibly be explained in these comments. The value will be within some predetermined range (probably 0 - 1,000,000).

Implementation

core.String? weightCalculationStrategy;