When I visit the site and open any thread, I always see ads embedded in a few posts at the top of the thread. They look like being taken from pages I have visited. So they are localized based on my IP address I use to visit the site - PF. But I don't know how google(?) does that.