Pricing based on cost is irrelevant because that has nothing to do with the value created or what people are willing to pay. E.g., why did Sony and MS sell the PS3 and 360 below cost for so long? Well, no one would have paid the $1000 plus margin that Sony would have needed.
On the other end, do you really think that bottle of Coke you buy is priced anywhere based on the cost of manufacturing? The ingredients in that cost about $0.02, but they charge $1 at the store. The 20oz bottle has maybe an extra couple cents of cost, but they charge twice as much.
To your point, Ask could have 5% share of volume, but if their ad platform was better to the point that they could charge 10x what Google could, they would be doing pretty well.