performance - 选择第一个广告的算法是什么?

标签 performance algorithm formula advertisement-server serving

我需要一个公式来计算哪个广告将首先转换。

好的,问题来了:我正在开发一种新的广告方式系统。广告商将为一个类别定义总预算和最高 CPC。

如果同一类别中有多个广告客户,谁的广告先转换,顺序是什么?

举个例子:

Advertiser # | Total Budget | Max CPC
-------------|--------------|---------
1            | $1000        | $1
2            | $1,000       | $5
3            | $500         | $10
4            | $10,000      | $4 

类别的平均点击率是 %2

是的,所有数字都是假的。

那么,谁的广告将首先转换?为什么以及如何转换?我该如何表述?

最佳答案

通常,CPC 在竞价系统上运作 - 那些愿意为点击支付最多费用的人将最先展示,因为这将为广告服务器带来最高利润(假设所有广告都具有同等的点击吸引力)。

假设广告商 1 愿意为每次点击支付 0.60 美分 广告商 2 愿意为每次点击支付 0.75c

您每次都会先为广告商 2 提供服务,直到达到他们的预算,然后再继续为广告商 1 提供服务。

获得服务是每个广告客户的目标,因此您可能需要向人们展示他们的排名,以鼓励他们为每次点击支付更多费用。

但这并不是一种“新的广告方式”。

执行此操作的算法如下:

    function get_best_ad(var category){

            //get all ads in that category                      
            array ads = get_ads_by_category('category'); 

            //sort them so the highest big is first in the array
            ads = ads.sort_by_bid('desc');

            /*the owner is the advertiser, their wallet is how much remains of their budget, the bid is how much is costs for that ad to be clicked. The first ad that can be served is returned; breaking out of the loop and method*/
            foreach(ads as ad){
                if( ad.owner().wallet > ad.bid() ){
                   return ad;
                }
            }
    }

关于performance - 选择第一个广告的算法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15191407/

相关文章:

php - 如何在PHP中计算一个值范围内的百分比

formula - Tableau 中的日期差异函数帮助

ruby - 将哈希数组转换为哈希哈希,由哈希的属性索引

c++ - 更改完全不相关的代码时,Visual Studio C++ 编译器生成的代码速度降低了 3 倍

algorithm - 使用广度优先搜索和中序遍历来分析一个非常大的二叉搜索树的有效性

algorithm - 找到数组中绝对差的最小总和的数字

excel - 如何在Excel中对具有相同值的多个单元格进行分组

Angular6:变化周期的性能

python - 如何让计时器更有效率

java - 要开发 Internet Messenger,我应该怎么做?