Affiliate links, google ads, etc: Tracking originating page?

Hello.
I haven’t setup any ads on my site yet but once I do, I would like to be able to track which page of my website the user was currently on when they clicked the ad (i.e. I want to know that I made $2.15 this month from my Page1.aspx but only made $1.15 from my Page2.aspx)

Do affiliate link sites and google adwords usually provide reports to view these originating pages or provide any sort of API’s to capture the originating pages?

Thanks.

Why exactly you want to do that? You mean you are making money with Adsense? or you are making money by placing ads on your sites?

I have a script where you can tracks the clicks on the ads, but you may need manually find out how many sales you have actually made.

Adsense allows you to create ‘channels’ so you can know exactly what ad was clicked when you generate your reports.