What is the Priority Calculation?

The Priority calculation is a part of the Ad prioritization process that is responsible for calculating a 'Priority scores' for Ad campaigns. The Priority scores are then indexed to form a hierarchical list that determines which Ad campaign should be requested first.

This article explains the following topics:

- What parameters determine the priority score?
- Priority calculation for Direct campaigns.
- Priority calculation for Network campaigns.
- Ad start ratio logic.

What Parameters Determine the Priority Score?

The Priority calculation is different for Direct and Network Ad campaigns, due to the different nature of each campaign type. Both Direct and Network campaigns share the following parameters that are used to calculate the Priority score calculation:

**Expected CPM**- This is a user defined value that represents the expected cost per thousand of ad impressions that will be provided by your ad vendor. This is often an estimate, since the ad vendor will often have a floor and expected range. The 'Expected CPM' is defined at the Ad campaign level.**Priority Boost**- This is a user defined value to boost the priority of an Ad campaign when starting the campaign out. As you will see in the following explanations, this field is used as a multiplier to determine the Ad campaigns Priority score. By modifiying this value at the beginning of an Ad campagin you can give that campaign a higher priority that others.

In addition, another parameter is used, but only for calculating Network Ad campaigns:

**Ad Start Ratio**- This parameter is a statistic value determined automatically by the Vidible system, used to evaluate the performance of each Ad campaign's Ad server. The value of this parameter is pa percentile ranging from 0.0 to 1.0.

As mentioned before, this parameter is relevant only for Network Ad campaigns. The reason for this is to optimize the ad requests sent by the Vidible system to Ad servers that respond in reasonable advertising standard times.*Note: For further details, please see Ad Start Ratio Logic.*

Priority Calculation for Direct Campaigns

The Priority Calculation for Direct campaigns is based on two parameters: 'Expected CPM' and 'Priority Boost'. Both of these values are multiplied to result in the Direct Ad campaigns 'Priority score'.

The reason for using only these two parameters is the fact that Direct Ad campaigns represent Direct sold ads. This means that Direct campaigns should return a vaild ad at any given time.

After Priority scores have been calculated for all of the Ad campaigns in the relevant Ad set/s, the campaigns are then indexed to form a hierarchical list. Only the Direct Ad campaign with the highest priority score is requested by the system.*Note: If two or more Ad campaigns share the same Priority score, they will be forwarded to the Remaining impression % calculation to evaluate their order. For further details, please see Remaining impression % calculation.*

Priority Calculation for Network Campaigns

The Priority Calculation for Network campaigns is based on three parameters, opposed to the Direct Ad campaign calculation above. The parameters are: 'Expected CPM', 'Priority Boost' and the additional parameter 'Ad Start Ratio'.

The reason for incorporating a third parameter is due to the nature of Network Ad campaigns. Network Ad campaigns are usually back-fill campaigns that in most cases don't return a specific ad. In addition, some Network campaigns include VPAID Shims that can potentially reduce the performance of the player.

Note: For further details, please see *What is a VPAID Shim?*

All of these three values are multiplied to result in the Network Ad campaigns 'Priority score'.

The reason for using an additional Ad Start Ratio parameter is to optimize the ad requests sent by the Vidible system. Only Ad servers that respond in reasonable advertising standard times will be given a higher priority as we all want our players to perform at their best and reduce waiting time.

After Priority scores have been calculated for all of the Ad campaigns in the relevant Ad set/s, the campaigns are then indexed to form a hierarchical list. The list is then forwarded to a Grouping process that divides the Ad campaigns into groups of 11.

The groups will then send out the relevant Ad requests in bulks, according to the Ad campaigns indexed within it. The ones with the highest priorities will be sent first and so forth.*Note: For further details, please see Grouping Process Logic.**Note: If two or more Ad campaigns share the same Priority score, they will be forwarded to the Remaining impression % calculation to evaluate their order. For further details, please see Remaining impression % calculation.*

The Ad Start Ratio is an automated process that rates Ad servers according to their ad response times. The calculation of the Ad Start Ratio is determined using to parameters: 'Ad Start Today' and 'Ad Start Total'.

**Ad Start Today**- A value that represents the percentile evaluation (between 0.0 to 1.0) of the Ad server's performance in the past 24 hours.**Ad Start Total**- A value the represents the percentile evaluation (between 0.0 to 1.0) of the Ad server's performance since it was called first.

The Ad Start Ratio is determined according to the following logic:

- If the
**Ad Start Today**is Higher than**0**, then the**Ad Start Ratio**=**Ad Start Today**. - If the
**Ad Start Today**is Equal to**0**, and the**Ad Start Total**is Higher than**0**, then the**Ad Start Ratio**=**Ad Start Total**. - If the
**Ad Start Total**is Equal to**0**, The**Ad Start Ratio**=**1**.