Get backlinks from high PR do follow webpages........and pagerank juice will get passed on to your site..
Advertisements are not direct links but a redirect of mainly Javascript type and so it would not help in Pagerank of Google.