Generally in the advertising world, someone who writes words, slogans, headlines or copy for an ad (No matter which type: Print, internet etc.) is called a Copywriter. The copywriter gets the information about the target audience (who you are selling to), and information about the product or service itself in order to write copy/text that will appeal to the viewers.