Was Iraq or spending the main factor in the GOP's 2006 election losses?

At Wednesday's Republican presidential debate in California, John McCain asserted that Iraq was not the major factor in the GOP's 2006 election losses:

Spending got out of control. Republicans lost the 2006 election not over the war in Iraq, over spending. Our base became disenchanted.

The Pew Research Center for the People & the Press surveyed voters in the 2006 election.

GOP voters were found to be unhappy about spending:

Among Republicans and Republican-leaning independents, 56% overall say the party is doing only a fair or poor job standing up for its traditional positions on things like reducing the size of government, cutting taxes or promoting conservative social values; just 42% say the party is doing an excellent or good job.

Among the broader electorate, though, Iraq was key:

Pew's post-election survey, which asked Americans to identify which issue was most important in their voting decision, finds that Iraq was the central issue of the campaign. Indeed, a majority of voters saw the Iraq war as one of the top two issues in the election (53%), with the economy second (37%), followed by values issues such as abortion and marriage (27%). About one-fifth of the voters gave priority to corruption and scandal (23%), terrorism (21%) and illegal immigration (20%).

Iraq was the central issue for voters during the 2006 campaign that took Congress from the GOP. Truth or not?

Truth
69% (95 votes)
Not
31% (42 votes)
What do you think?