Here’s McCain’s selection for the Vice Presidency of the United States, Sarah Palin, answering a 2006 policy questionnaire:
Q: Are you offended by the phrase "Under God" in the Pledge of Allegiance? Why or why not?
PALIN: Not on your life. If it was good enough for the founding fathers, its good enough for me and I’ll fight in defense of our Pledge of Allegiance
Okay, first of all, the Pledge of Allegiance was written in 1892, three or four generations after that of our founding fathers.
It didn’t become the official pledge of the United States until 1942 (six years after John McCain himself was born).
And when it was written, it didn’t contain the words "under God". That was added in 1954 by an act of Congress (McCain was a senior in high school).