(CNN) - When it comes to Iraq, Americans agree with both John McCain and Barack Obama.
According to a just-released CNN/Opinion Research Corp. poll, a majority agree with the Arizona senator's assertion that the troop surge policy in Iraq has been a success. But an even larger majority agree with Obama's plan to set a timetable for troop withdrawal.
The new survey shows 52 percent of Americans rate the surge as a success while 41 percent say it has been a failure. McCain has been sharply critical of Obama for not calling the policy, implemented in January 2007, an outright success. The Illinois senator has said he thinks the surge has improved conditions on the ground but would still have not supported it, instead favoring a "strategy that actually concludes our involvement in Iraq and moves Iraqis to take responsibility for the country."
More than 60 percent of Americans appear to agree with Obama on that front, while 37 percent agree with McCain and say it would not be wise for the U.S. to set a timetable for withdrawal.
There is also good news and bad news on Iraq: The number of Americans who say the U.S. is winning the war is on the rise, and is at its highest level in 2 1/2 years. Now 37 percent say the U.S. is winning the war - that number is five points higher than it was in March and nine points higher than it was at the end of last year.
But 57 percent still say neither side is winning and 6 percent say the insurgents are on top.
Meanwhile, 56 percent of Americans agree with the view that the number of troops in Afghanistan should be boosted as the number of troops in Iraq is reduced. That may be because more Americans support the war in Afghanistan, although most Americans oppose both wars - 46 percent favor the war in Afghanistan; just 33 percent support the war in Iraq.