Forum Moderators: martinibuster

Message Too Old, No Replies

Wrapping AdSense Code with JavaScript to yield ad click information

Is this kosher, and is their a solution that doesnt use iframes?

         

Jeremy_H

4:52 am on May 30, 2006 (gmt 0)

10+ Year Member



Recently, I just learned from this post [webmasterworld.com] that users can get detailed information about the AdSense ads people click on by wrapping their AdSense code with some JavaScript.

From my research it looks like it can yield at wealth of information while still remaining within the TOS.

I was looking for various scripts that yielded this outcome, and found one that uses an iframe that called a script onFocus.

For various reasons, I would like not to use a solution that uses iframe technology. I've been experimenting with <div onFocus="...">AdSense Code</div> but with no luck. (I didn't use real AdSense Code, just a regular link to another page).

Are their solutions that don't use iframes that someone might recommend? And has anybody received feedback from Google about this being allowed?

Thanks

barns101

1:40 pm on May 30, 2006 (gmt 0)

10+ Year Member



As far as I can see, AdLogger [adlogger.org] (open source) uses only JavaScript (but it does use a PHP/MySQL backend). As it does not alter Google's code it does not violate the TOS.

Jeremy_H

12:33 am on May 31, 2006 (gmt 0)

10+ Year Member



Thanks Barns for your reply.

Apparently I am WAY behind the ball in implementing this awesome function to my site.

I found a script that works from the AdSense Library [webmasterworld.com] on this forum.

Right now I'm tweaking it for my site, and I'm wondering what raw/unprocessed information one could gain from this.

Aside from the information about the page the ad was displayed on (such as address and title), and information about the user and other details (like ip address and time), what information aside from the ad link can you grab?

Right now I see its possible to grab the site link, but can you grab ad copy, or the information of the other ads that were displayed but not clicked on?

At this point I'm not talking about any specific scripts, but what information is their that one can draw upon.

Thanks

Bates

2:18 am on May 31, 2006 (gmt 0)

10+ Year Member



This sounds like it would be very useful... Is there any way to do this while serving ads with phpadsnew?