Online allocation rules for display advertising