Amazon’s ambitious drive into digital-advertising General Building a big ad business will help the firm to keep expanding