A song used for advertising is called a jingle.