Shapiro had served as an advisor to then-U.S. Sen. Barack Obama on Middle East and Jewish community issues since 2007, also assisting as strategist and fundraiser. He accompanied Obama on his July 2008 trip to Israel; in August 2008, Obama appointed him senior policy adviser and Jewish outreach coordinator for his 2008 presidential campaign.