This is
context based advertising. It is not
personalized in that it has nothing to do with who you are. It is only based on what you do on the site.
DuckDuckGo has been pretty successful with context based advertising --- based simply on the terms you search for.