eMarketer estimates US online ad spending will reach nearly $40 billion in 2012, pushing it ahead of total spending on print newspapers and magazines. National elections will give advertising a boost this year, and more large advertisers becoming comfortable with putting a greater share of dollars online will help its growth rate stay well above 20%.