How to Balance UX and Revenue with Ad Density