|
@@ -182,6 +182,7 @@ public class RankStrategyBy833 extends RankStrategyBasic {
|
|
|
adRankItem.setSkuId(dto.getSkuId());
|
|
adRankItem.setSkuId(dto.getSkuId());
|
|
|
adRankItem.setCustomerId(dto.getCustomerId());
|
|
adRankItem.setCustomerId(dto.getCustomerId());
|
|
|
adRankItem.setProfession(dto.getProfession());
|
|
adRankItem.setProfession(dto.getProfession());
|
|
|
|
|
+ adRankItem.setLandingPageType(dto.getLandingPageType());
|
|
|
adRankItem.setRandom(random.nextInt(1000));
|
|
adRankItem.setRandom(random.nextInt(1000));
|
|
|
if (noApiAdVerIds.contains(dto.getAdVerId())) {
|
|
if (noApiAdVerIds.contains(dto.getAdVerId())) {
|
|
|
adRankItem.getExt().put("isApi", "0");
|
|
adRankItem.getExt().put("isApi", "0");
|
|
@@ -365,6 +366,9 @@ public class RankStrategyBy833 extends RankStrategyBasic {
|
|
|
isGuaranteeType = true;
|
|
isGuaranteeType = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // h5 降权
|
|
|
|
|
+ double h5Weight = this.getH5SuppressWeight(item);
|
|
|
|
|
+
|
|
|
// 控制曝光权重
|
|
// 控制曝光权重
|
|
|
Map<String, Map<String, String>> cidFeature = allCidFeature.getOrDefault(String.valueOf(item.getAdId()), EMPTY_NESTED_MAP);
|
|
Map<String, Map<String, String>> cidFeature = allCidFeature.getOrDefault(String.valueOf(item.getAdId()), EMPTY_NESTED_MAP);
|
|
|
Map<String, String> b3Feature = cidFeature.getOrDefault("alg_cid_feature_cid_action", EMPTY_STRING_MAP);
|
|
Map<String, String> b3Feature = cidFeature.getOrDefault("alg_cid_feature_cid_action", EMPTY_STRING_MAP);
|
|
@@ -378,13 +382,14 @@ public class RankStrategyBy833 extends RankStrategyBasic {
|
|
|
double layerAndCreativeWeight = getLayerAndCreativeWeight(layerAndCreativeWeightMapKey);
|
|
double layerAndCreativeWeight = getLayerAndCreativeWeight(layerAndCreativeWeightMapKey);
|
|
|
double scoreCoefficient = creativeScoreCoefficient.getOrDefault(item.getAdId(), 1d);
|
|
double scoreCoefficient = creativeScoreCoefficient.getOrDefault(item.getAdId(), 1d);
|
|
|
double guaranteeScoreCoefficient = getGuaranteeScoreCoefficient(isGuaranteedFlow, item.getExt());
|
|
double guaranteeScoreCoefficient = getGuaranteeScoreCoefficient(isGuaranteedFlow, item.getExt());
|
|
|
- double score = expWeight * item.getLrScore() * bid * scoreCoefficient * guaranteeScoreCoefficient * layerAndCreativeWeight;
|
|
|
|
|
|
|
+ double score = h5Weight * expWeight * item.getLrScore() * bid * scoreCoefficient * guaranteeScoreCoefficient * layerAndCreativeWeight;
|
|
|
item.getScoreMap().put("guaranteeScoreCoefficient", guaranteeScoreCoefficient);
|
|
item.getScoreMap().put("guaranteeScoreCoefficient", guaranteeScoreCoefficient);
|
|
|
item.getScoreMap().put("cpa", item.getCpa());
|
|
item.getScoreMap().put("cpa", item.getCpa());
|
|
|
item.getScoreMap().put("cpm", item.getCpm());
|
|
item.getScoreMap().put("cpm", item.getCpm());
|
|
|
item.getScoreMap().put("bid", bid);
|
|
item.getScoreMap().put("bid", bid);
|
|
|
item.getScoreMap().put("cpmCoefficient", cpmCoefficient);
|
|
item.getScoreMap().put("cpmCoefficient", cpmCoefficient);
|
|
|
item.getScoreMap().put("scoreCoefficient", scoreCoefficient);
|
|
item.getScoreMap().put("scoreCoefficient", scoreCoefficient);
|
|
|
|
|
+ item.getScoreMap().put("h5", h5Weight);
|
|
|
item.getFeatureMap().putAll(userFeatureMap);
|
|
item.getFeatureMap().putAll(userFeatureMap);
|
|
|
item.getFeatureMap().putAll(sceneFeatureMap);
|
|
item.getFeatureMap().putAll(sceneFeatureMap);
|
|
|
|
|
|