Stochastic Blockmodeling for Online Advertising