That's not true, the ads shown are related to your online activity and not the content of your mail messages. See https://support.google.com/mail/answer/6603?hl=en
"We will not scan or read your Gmail messages to show you ads."
"We will not scan or read your Gmail messages to show you ads."