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 that person spends 10 minutes on the site reading different pages then Google knows that's a quality site, and that can help search rankings.