The Mechanics of Mobile Ad Targeting