This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with threshold as ( | |
SELECT percentile_cont(0.25) within group (order by CTR desc) as threshold25, | |
percentile_cont(0.50) within group (order by CTR desc) as threshold50, | |
percentile_cont(0.75) within group (order by CTR desc) as threshold75, | |
count(*) as total_items | |
FROM items | |
), | |
final as ( | |
SELECT | |
items.id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
var PREBID_TIMEOUT = 400; | |
var googletag = googletag || {}; | |
googletag.cmd = googletag.cmd || []; |