You probably don't want to use a trademarked name in your domain name regardless of how you plan to use it unless you have the explicit consent of the trademark holder. Some companies are fairly generous in granting this consent while others can be quite nasty about even perceived and questionable trademark violations (example, ask anyone who has tried to use 'bay' or 'monster' in a domain name). If you don't seek consent, then you'll have your site on the edge of destruction all them time. That's not where you want to be if you want to have a long term web property that you spend time and money developing.
Should you get consent, then how you conduct your advertising will depend on the conditions of that consent. For example, one popular forum I know of uses the trademark name in their domain with the permission of the trademark owner. They show Adsense ads that frequently display competing products and the trademark owner doesn't seem to have a problem with it. Another similar forum in a different niche is only allowed to show ads from the trademark owner and their authorized dealers.