The outcome gives Republican candidates an advertising edge in the final weeks of the campaign.