The one and only job of a campaign is to get the candidate elected.
Obama ran a great primary campaign, but he hasn't been doing that great in the general election so far, according to US polls--especially the newest ones that show Obama slipping and McCain gaining.