Apple Inc. could turn advertising into its next $20 billion business as the company ramps up its offerings and clamps down on ad targeting by third parties.