If you've been using Gmail for any length of time, however, then you've likely learned to ignore the ads it displays above, below, to the side, or directly inside your inbox. Perhaps with Google's terms of service in the news this week, you've given new thought to the ads you see in Gmail. There is no way to stop some of the ads from appearing, but if you dig around in settings, you can opt out of targeted ads. And you can eliminate one ad that sits at the top of every message you read when using accessing Gmail via a desktop or laptop.
Perhaps you don't like the targeted ads because they are a constant reminder of Google's ever-vigilant scanning of your personal correspondence. Or perhaps you just find targeted ads harder to ignore than ads that aren't tailored to you and your interests. Whatever your reason, you can opt out of what Google refers to as "interest-based ads" and receive contextual ads that may be based on the message you are currently reading but not on the content of your inbox on the whole as well as your Google search history and other account information.
To opt out, head to Google's Ad Settings page. Scroll down to the "Opt-out settings" area and click the "Opt out" link for "Opt out of interest-based ads on Google."
Next, let's get rid of the narrow banner text ad that sits above every Gmail message you open. You've probably blocked it out, but there is an easy way to eliminate it altogether. Click on the gear icon in the upper-right corner and choose Settings. Then click on the Web Clips tab and uncheck the box for "Show my web clips above the Inbox."
Now, as the informative post on WonderHowTo explains, you can also remove any ads that appear as messages in the Promotions tab of your Gmail inbox, but to do so, you have to delete the Promotions tab. In my case, I don't see such ads in my Promotion tab, and deleting it would unleash a wave of messages to my primary inbox that I'd rather keep quarantined in the Promotions tab. If you'd like to get rid of the Promotions tab, go to the Inbox tab in settings and you'll be able to uncheck a box for the Promotions tab.
Alternatively, Chrome users can use the Gmelius extension, which lets you customize what elements show up on Gmail and where.