Forum Moderators: open
We found no solution, and furthermore any futzing around with the AdSense code will get your account pulled.
I need an automatically compiled and updated list of sites I'm giving my traffic to so I can block competitor's ads easily.
The problem is I don't know anything about Javascript. I've read it can cause problems on your site, and I've always ignored it until AdSense. I need to extract the domain info that shows up in the IE status bar when mousing over one of the ads from code like this:
<script type="text/javascript"><!--
google_ad_client = "my-number";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type ="text";
google_color_border = "000000";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_url = "AAAAAA";
google_color_text = "000000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Can anyone point me in the right direction?
- Grant
It seems like you should be able to get the domain info without "clicking" since IE shows it by mousing over?
You can, at that time. He (and probably you) was more interested in what URL's visitors were seeing and clicking.
The task is still the same, to find out what ads visitors are seeing (or clicking on) and using the AdSense tools eliminate undesirable ones from displaying on your site. I think it's set up so you CAN'T do that, giving the advertisers confidence that they'll have an equal shot at it. The code pushed out by Google and your page are both unwitting passengers in a page delivery and have no awareness of each other, there's no way to sniff out each other's content. (Why does Google display pertinent topical ads? That's a different process, if you check your logs you'll see visits from the Google spider.)
As far as I know - there's no way to do either with Javascript unless you diddle with the Google code, and that may be disastrous.