Maximizing Profits with Pay Per Click