Apple is planning to bring ads to its Maps app as part of a wider effort to boost revenue from its growing services business.