Forum Moderators: martinibuster

Message Too Old, No Replies

Extracting Adsense links from an adsense web page?

I use "link extractor" to extract links from a web page, unfortunately

         

tedj

4:21 am on Sep 19, 2008 (gmt 0)

10+ Year Member



it doesn't seem to pick up the adsense urls, though adsense urls are displayed on the page itself.

It seem to pickup all other url's from the same page, but not the adsense url's? any idea on how I can extract them?

any idea's on how to? the purpose here is extract lowclick adsense url's (ads) & block them from the site.

tedj

Marcia

4:35 am on Sep 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And if you could scrape them and pick and choose which to display, in what way would you be modifying the Adsense code?

tedj

4:56 am on Sep 19, 2008 (gmt 0)

10+ Year Member



This is not to modify to adsense code! this is to remove unwanted ads appearing on my site. LPC's).

browsing through individual pages and looking 4 them is useless. But if I could easily locate all these urls in 1 go, I could easily block them using the filter....

swa66

10:13 am on Sep 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the links are given in response to an iframe loaded from google. The iframe is generated by javascript, also loaded from google. Not so easy to program that, and risky as you'll be crawling google with a bot, over ads on your own site.

Might not be worth the trouble it might get you.

tedj

10:52 am on Sep 19, 2008 (gmt 0)

10+ Year Member



....I understand. But here is what I'm asking -- I have a saved web page with 3 adsense ads on it from My own site. There are a 6 other web urls on the same page too, other than adsense urls.

Now, I disconnect the internet connection and use "link extractor" to extract the web links starting with "wwww." from the same web page.

6 urls get picked up by the program, but not a single adsense url !

I just can't get my head around it! why doesn't it pick up the adsense urls, though the 3 adsense urls are displayed on the page itself?

fredw

1:28 pm on Sep 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Adsense ads are generated by Javascript. When your page is viewed, the browser follows the javascript instructions, and downloads the ad content from Google, which it displays in the place in your page where the javascript code is. The ad content is never in the content of your page, only the javascript is. Your users see the ads because their browsers run the javascript.

You can prove this yourself. View your page, and using Internet Explorer, select Page "Save As..." and then select "Web Archive Single File". Save it to your desktop. Click on the archive file and you will see ads where they belong. Now disconnect from the internet, so that you cannot see online web pages. Now, click on your web archived page again. You will see that the ads in the page are now broken, the browser is trying to go out to the internet to get them, but it can't, because you're disconnected from the internet.

You cannot extract the adsense links from the code of your page because they were never in the code of your page in the first place.

OnlyToday

2:14 pm on Sep 19, 2008 (gmt 0)

10+ Year Member



You can right click the ad link and "Copy shortcut" which is much more tedious than a link extractor, but that's the only way I know to get that URL. As an expedient entire ad blocks can be highlighted, copied, and pasted "formatted" to a Word page which then can be saved as html and extracted locally.

I'm doubtful of the entire enterprise, but that's how it could be done.

fredw

3:25 pm on Sep 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



None of those suggestions address the original poster's intention, which is to extract adsense ads from his pages in an automated way, an enterprise most of us here on Webmaster World wonder why he'd want to do in the first place.

Even if you could do it, which I think we've shown you can't, the list of ad urls you would get would not even scrape the surface of the total list of ads being shown to the consumers of your site. Ads change constantly throughout the day, and different ads show to different users depending on their geographic locations.

tedj

3:53 pm on Sep 19, 2008 (gmt 0)

10+ Year Member



A "Thank you" for all of you, for enlightening me on this topic. Very much appreciated.

Now reason for this quest was, recently I unknowingly brought an adsense web package. hosted it for a couple of days, and only then I just began to know what was going on. MFA and LCPC! To remedy the situation, I began trawling through the pages to see, what's was going on the with the adsense ads and the sites it were leading to, on how fake make some these ads were. Bottomline - people been led on the merry go round and me not getting me dollars right. New to the scene and coming to know 1/10th of the problem, I thought this way I could clear a lot of the garbage out of sight, thus could increase earnings, thus the link extract idea.

thanks again.

P.S. By the way, is this above makes good copy writing?

netmeg

4:36 pm on Sep 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



By the way, is this above makes good copy writing?

Hunh?

(in other words - no, but possibly I'm not understanding what the question was)