Google uses your search results to show you ads tailored according to your interests in both their search results as well as websites which display Google ads.
Read this post on techsagar.com