If you hear a song in an ad that you like, there are several ways to go about finding out what it is, and downloading it. The easiest way nowadays is to use an app like Shazam or Soundhound, but that's not to say there aren't other ways. Before Shazam hit the app stores, googling lyrics was the easiest way to go.