Marketing is done in all 3 stages of making a game. Pre-production, during development and post-production.