If you have the tabbed inbox enabled (i.e. Social, Promotions, Updates, Forums), then Gmail will insert ads into the non-primary tab that look almost like regular emails. If you have the tabs disabled so that all your messages show up in the Primary inbox, you don't get ads.