In economics there is a concept, profit maximization, where it is determined at which prices the products will, well maximize profits, by taking into account marginal changes in supply and demand. I would be very surprised if the big ad companies didnt have a few economists do the calculations.
https://en.wikipedia.org/wiki/Profit_maximization?wprov=sfla...