The same way as all ads are targeted. By a combination of demographics, geography, audience building (keywords, similar sites), placement (placing them on a specific app), and remarketing/retargeting. You tailor these factors down to be as detailed as possible.
Generally, the more targeting is drilled down and specific, the more it will cost to advertise to that audience of people.