Spend two minutes on Facebook and you’ll see how targeted ads work — they pick up on the links you click on and search terms you use to serve you relevant ads. Search for breakup songs in Google?