The "d" is for development. Basically "research" is finding a potential drug (making a chemical that has an effect on disease in animal or in vitro models and has good pharmacological properties) and "development" is testing it in tox studies, scaling up manufacturing, testing it for safety and effectiveness in humans. There is a ton of risk and cost in the "development" stage
DTC ads would be in the marketing budget under SG&A