Actually, what hurt McCain was that he choose a nut job as his running mate. Palin set women back a hundred years.
I'm not a fan of hers, but poll numbers from 2008 disprove that. She actually increased McCain's poll numbers, and that wasn't just with the MILF-lovers.
She was stupid enough to be the governor of Alaska. Which game her far more experience that Obama had and he was running for president.
You're right. Obama had zero executive experience when he ran for Prez and had not even had a full term as a senator.