Any traffic that stays on your website over 30 seconds and interacts with it helps your rankings in google.
That is why they give out all the free stuff like Google Analytics, Google OS, Google Chrome, etc. It let's them see what people are doing.
If a person clicks an ad for a site, then...