What are you on about? There’s no ads in Shazam. You just open the app and it starts searching. No need for even tapping a button.
I'd argue that Shazam doesn't have ads, rather it is an ad. You search for the song, then see links to buy it in Apple Music. You'll also see "subscribe to Apple Music" type widgets on just about every screen on the app.