With programmatic advertising online, advertisers target specific demographics of people. They are not tied to particular pieces of content or certain locations.
Therefore, advertisers and publishers are not always aware of exactly what content the ad will be put around.
This can turn out to be disastrous, or just funny. Examples of ad misplacement range from Donald Trump ads next to pro-Isis videos, to beer ads next to stories about drunk driving.
These mistakes have the potential to be embarrassing or even damaging to the advertiser in question. We compiled 31 of the funniest, or most unfortunate ad placements of the digital era.
Mallory Russell compiled an earlier version of this report.
While this ad for pastors unfortunately appeared over a video of a priest from London, who was accused of possessing child porn.
While a pro-Clinton ad was played before a video by the 'al-Hayat Media Center' -- the media wing of ISIS.
Similarly, viewers of 'Great Nasheed 2015 Akhi Ablighmy brother inform my companions YouTube' were asked to donate to the Feel The Bern Committee.
Facebook has also had problems with ad misplacement. A promoted post for the video to 'Stacy's Mum,' a classic song about a teen being in love with their girlfriend's mum, appeared next to a real life example of it.
Just after a couple gets imprisoned for attempting to cremate their dead toddler is probably not the time to big up people who can grill like an expert.
Stories around babies can be difficult to advertise around, as this intrusive Medal of Honour video game ad proves.
This is even worse. News of Chile's earthquake was inappropriately interrupted by meteors from the ad for the movie '2012.'
When there is a crisis involving an oil spill, Deloitte would be wise to pull all ads referencing oil.
Toyota did not envisage being placed next to a story about a car crash on MSNBC when it asked 'Feeling trapped inside your old car?'
This Folgers ad gives conflicting messages when next to a story about the beverage triggering heart attacks on Yahoo News.
This ad for holidays in Greece appeared badly-timed next to a story in the Guardian about violent riots in the region.
McDonald's selling any size of soft drink for just $1 may be considered a potential cause of obesity.
NOW WATCH: Briefing videos
Business Insider Emails & Alerts
Site highlights each day to your inbox.