BAGHDAD, Iraq (CNN) -- Sen. Barack Obama and Iraqi Prime Minister Nuri al-Maliki on Monday discussed a "general time horizon" for any American troop withdrawals from Iraq, al-Maliki's office said. Sen. Barack Obama rides in a helicopter Monday with Gen. David Petraeus in Baghdad, Iraq. Obama -- who has made ending the Iraq war a cornerstone of his run for office -- engaged in what were described as productive talks with al-Maliki during a trip to Iraq. The Iraqi government has been pushing for the United States to set a general timetable to spell out troop withdrawals. Iraqi Vice President Tariq al-Hashimi also met with Obama Monday and told reporters afterward they discussed the security agreement.
@highlight
NEW: Sen. Barack Obama, Iraqi prime minister reportedly hold "productive" talks
@highlight
Sens. Jack Reed and Chuck Hagel accompany Obama on trip
@highlight
Obama has talks with Afghan President Hamid Karzai on Sunday
@highlight
Obama says part of his strategy is "taking the fight to al Qaeda in Afghanistan"
Afghan
Afghanistan
Obama has said that if he's elected, he would commit more troops to @placeholder and would order the military to end the war in Iraq, which he has called a "dangerous distraction" from the Afghan battle.
Afghan
Afghanistan
The fight in @placeholder recently has become a more pressing issue on the political radar.