Enums | |
---|---|
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). |
CreativeRotationWeightStrategy
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-02 UTC.
[null,null,["Last updated 2025-09-02 UTC."],[],[],null,["| Enums ||\n|-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `WEIGHT_STRATEGY_CUSTOM` | The creative weights can be any user provided positive integer. |\n| `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. |\n| `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). |"]]