i am just trying to learn adsense. so, i put the code on all my pages. but, there are pages on my website that are not indexed by google. will this harm my revenue generation? or, is it like ads display is different from search index?
Yes. For AdSense it doesn't matter if the page is in the main google index or not, ads will still show, and should be relevant to the page.