If you have turned on your ad personalization for your Google account, Google will use your information to make your ads more relevant to you. This means that it will use your search and browser history and interests. If ad personalization is off, the ads will only appear according to the current site you're visiting, and Google will not analyze your browser or search history.