double avg = AVERAGE_PER_1K.containsKey(type) ? AVERAGE_PER_1K.get(type) : 1;
double rvalue = toEcpm(type, 1000, avg, value);
trans.hset("type:", id, type.name().toLowerCase());
trans.zadd("idx:ad:value:", rvalue, id);
trans.zadd("ad:base_value:", value, id);
for (String word : words){
trans.sadd("terms:" + id, word);
}