Palin was brought in to be the scapegoat for McCain's premeditated loss ...
I think she was brought in to get conservative votes so he did not lose in the biggest landslide in history. I do think there was a deal for him to lose, but his ego did not want it to be a huge loss.