I had one for grocery deliveries, all because I accidentally clicked on it over a month ago on the store website.
Not entirely on history, but yes, it influences the ads that appear. There will be random ones no matter what, though. There was a similar thread to this one a few months ago.