Bid optimization: the relationship between the cost per click and the set rate
Today we will talk again about conversions. Namely, evidence that, under certain assumptions about the relationship between the price of a click ( ) and set rate ( ), and also about the relationship between and the number of clicks ( ) for the optimization strategy “maximum conversions at a fixed target conversion cost (for example, ) ", The optimal bid for a keyword phrase is proportional to the product of the conversion rate for the phrase ( ) on the target cost of conversion , i.e:
The optimization rule itself is:
widely used in practice to optimize the rates in contextual advertising. In this paper, we present a rigorous justification of this approach, and also show how it can be modified in order to increase the effect of optimization.
Basic definitions and assumptions:
As part of the work, we will operate with the following values: ')
- the number of optimized phrases
- number of clicks on i phrase
- number of conversions for phrase i
- consumption by phrase i
- average price per click on i phrase
- conversion rate for i phrase. Classically, it counts as , but can also be calculated by other methods, for example, using pooling
- set rate for i phrase
Now we make a number of assumptions:
Assumption 1:
directly proportional This means that the higher the rate we set, the higher the cost per click, namely:
Where
Assumption 2:
Number of clicks on the phrase directly proportional to the root of the bet . This means that by increasing the rate by 2 times on average, we will receive 1.41 times more clicks. The logic of this model is that, from a certain point, an increase in the rate has little effect on the resulting increase in the number of clicks:
Where
Setting the optimization problem:
By making these 2 assumptions about the form of dependencies, we can express the main metrics of contextual advertising through a bid for a key phrase. We will not be interested in all metrics, but only the following, aggregated across all optimized phrases: expense ( ), the number of conversions ( ), the cost of conversion ( ):
If we accept our assumptions regarding the relationship between the average cost per click and the number of clicks on the rate, the last formulas will take the form:
The task that corresponds to the optimization strategy: “the maximum of conversions with a limited average price of conversion” can be mathematically written as:
Where - The target conversion price set by the user. If we now replace the expressions for and through their submission through a bid, we get the following equivalent problem:
or
We assume that the conversion rates as well as proportionality coefficients and do not depend on the bid. Then our task comes down to finding such a set of bids that would maximize the number of conversions at a limited CPA.
Solution optimization problem:
So, we formulated the classical extremal problem (search for the maximum) under the given constraints, which is called the conditional extremum problem in another way.
The classical approach to solving such a problem is the Lagrange method of indefinite multipliers, which reduces the problem to a conditional extremum in the search for unconditional (without restrictions on the solution) extremum.
The essence of the Lagrange method is to optimize a modified function of the following form:
Where - the original function, for which we need to find a conditional extremum, - specified restrictions on the solution, and - Uncertain Lagrange multipliers that need to be found in the process of optimizing the function .
In our case, instead of solving the problem formulated above, we will optimize the following function:
regarding variable: .
In order to find the maximum of the above function, it is required to solve the system from equations for variable:
Where - partial derivative functions on variable and - partial derivative of a function by Lagrange multiplier . Calculate these derivatives:
then from the fact that , follows that:
Similarly, we calculate the derivative
Thus, our task of finding the optimal set of rates has been reduced to solving a system of equations:
To solve this system, we first express of first equations of the system:
and substitute these expressions in the last equation:
Now we will simplify the resulting equation and remove all factors from the summation sign, which do not depend on :
or
Since all quantities , , cannot be less than 0 and are equal to zero at the same time, it means that
so the solution of the equation is equivalent to solving a simple equation for the Lagrange multiplier only :
It can be verified that this equation has only 2 solutions:
When substituting the first solution into expression we will get that for all . Obviously, such a solution does not deliver the maximum of the function being optimized. , which means this solution will be outsiders (with this solution we will not spend anything and will not receive a single conversion).
Now consider the second solution. and substitute it in
In this case, we have:
or
which means
Thus, our assumption is proved. Please note that in the formula for calculating the optimal rate there is also a multiplier . If we recall that
That becomes clear the meaning of this expression. It reflects how much we can additionally “artificially increase” the rate due to the fact that the cost of the click is always less than the rate we set. If we consider advertising networks (for example, YAN), then as a rule and therefore the classical formula for calculating the rate is correct:
Conclusion
In this post, we strictly justified the classical formula for optimizing the rates in contextual advertising for the strategy: “maximum conversions with a limited average conversion price”. We formulated basic assumptions when this formula is accurate. In addition, as a result of solving the task, Calltouch discovered how to modify this formula (especially if we talk about optimizing search advertising campaigns), so as to increase the effect of optimization. The results can be used as part of a conversion optimizer, as well as when manually managing bids.
Afterword:
In our opinion, the main purpose of this post is not even a strict proof of the well-known fact about how to optimize the rates for the context, but a demonstration in practice of one of the tools of the optimization theory, the Lagrange method of indefinite multipliers. This method allows to solve almost any problem on the conditional extremum arising in the development of practical tools for optimization. For example, the tasks “maximum conversions with limited DRR (share of advertising expenses)” or “maximum conversions with limited budget” are also easily reduced to a model that can be optimized using the Lagrange method. Of course, it is not always possible to solve the resulting system of equations analytically, as is done in the example described in the paper. The main difficulty of the considered approach is that we need to solve a system of nonlinear equations of large dimension, which is not always possible to do in closed form. However, there are methods of computational mathematics that will allow solving such systems numerically, building an approximate solution with any degree of accuracy.