|
@@ -140,6 +140,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setScore_type(663);
|
|
|
item.setBid1(dto.getBid1());
|
|
|
item.setBid2(dto.getBid2());
|
|
|
+ item.setWeight(dto.getWeight());
|
|
|
+ item.setCreativeCode(dto.getCreativeCode());
|
|
|
result.add(item);
|
|
|
}
|
|
|
|
|
@@ -182,6 +184,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
Map<String, Object> ext = this.extMap(statistic, "664", dto.getCpa(), null,
|
|
|
exp664Param.getOrDefault("alpha", 1d), exp664Param.getOrDefault("beta", 10000d), null);
|
|
|
ext.put("s1", s1);
|
|
|
+ item.setCreativeCode(dto.getCreativeCode());
|
|
|
+ item.setWeight(dto.getWeight());
|
|
|
item.setExt(ext);
|
|
|
item.setScore_type(664);
|
|
|
} catch (Exception e) {
|
|
@@ -225,10 +229,12 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = score * dto.getCpa() * dto.getBid1() * dto.getBid2();
|
|
|
item.setScore(score);
|
|
|
item.setScore_type(665);
|
|
|
+ item.setWeight(dto.getWeight());
|
|
|
|
|
|
Map<String, Object> ext = this.extMap(statistic, "665", dto.getCpa(), null,
|
|
|
exp665Param.getOrDefault("alpha", 1d), exp665Param.getOrDefault("beta", 10000d), null);
|
|
|
ext.put("s1", s1);
|
|
|
+ item.setCreativeCode(dto.getCreativeCode());
|
|
|
item.setExt(ext);
|
|
|
} catch (Exception e) {
|
|
|
log.error("svc=thompsonScorerByExp665 {}", gson.toJson(e.getStackTrace()));
|
|
@@ -373,6 +379,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setScore_type(666);
|
|
|
item.setBid2(dto.getBid2());
|
|
|
item.setBid1(dto.getBid1());
|
|
|
+ item.setWeight(dto.getWeight());
|
|
|
+ item.setCreativeCode(dto.getCreativeCode());
|
|
|
result.add(item);
|
|
|
}
|
|
|
|
|
@@ -443,6 +451,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
ext.put("vidCidA", alpha);
|
|
|
ext.put("cidB", cidBeta);
|
|
|
ext.put("vidCidB", vidCidBeta);
|
|
|
+ ext.put("bid1", dto.getBid1());
|
|
|
+ ext.put("bid2", dto.getBid2());
|
|
|
ext.put("cidStatistic", JSON.toJSONString(cidStatistic));
|
|
|
ext.put("vidCidStatistic", JSON.toJSONString(vidCidStatistic));
|
|
|
ext.put("cpa", dto.getCpa());
|
|
@@ -453,8 +463,12 @@ public class VideoAdThompsonScorerV2 {
|
|
|
AdRankItem item = new AdRankItem();
|
|
|
item.setCpa(dto.getCpa());
|
|
|
item.setAdId(dto.getCreativeId());
|
|
|
+ item.setWeight(dto.getWeight());
|
|
|
item.setScore(score);
|
|
|
item.setExt(ext);
|
|
|
+ item.setBid1(dto.getBid1());
|
|
|
+ item.setBid2(dto.getBid2());
|
|
|
+ item.setCreativeCode(dto.getCreativeCode());
|
|
|
|
|
|
result.add(item);
|
|
|
}
|