Essays in Online Advertising