The advertisements are based on keywords found in posts.

If you say "Gay" enough times, you'll get ads for it.