PDA

View Full Version : Decrypting AdSense Referrer URL to get publisher?


evilgreenmonkey
03-12-2007, 06:34 PM
Maybe I'm being dumb, but how do I find out the URL of the AdSense publisher that I get clicks from? I can extract their Publisher ID from the referrer header although I've heard people saying that they decrypt a string in the referrer address to find the publisher site.

e.g.
http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BJvn7vdT1RcKrCo_
O0gTJ4by-C4O4yCX3lKDwAsCNtwGQk2cQARgBIKW99QEoAjAAOABQ2qKvjw Vgu76
ug9AKmAHSo9IBoAHzivb-A6oBCjQ0Njc4NDMzMTGyARdmb3J1bXMuZGlnaXRhbHB
vaW50LmNvbboBCTQ2OHg2MF9hc8gBAdoBH2h0dHA6Ly9mb3J1b XMuZGlnaXRhbH
BvaW50LmNvbS_IAq_hbqgDAQ&num=1&ggladgrp=197948073&gglcreat=680354
883&adurl=https://www.google.com/adsense%3Fsourceid%3Daso%26subid%3D
uk-en_gb-ha-syn%26utm_medium%3Dha%26utm_term%3Dsearch%2520engi ne
%2520affiliate&client=ca-pub-5676236325709660&nm=4

I'm gathering that the ai variable includes the publisher URL?

:confused:

Rob

rustybrick
03-13-2007, 06:48 AM
Looks like in the referral string you posted, the pub id is

client=ca-pub-5676236325709660

Then a simple Google search http://www.google.com/search?q=pub-5676236325709660

Does that help?

Not sure if it 100% true, but seems logical.

evilgreenmonkey
03-13-2007, 07:01 AM
The example URL I gave was nabbed off Digital Point, so I'm guessing that people on the DP forums also use that AdSense code for their questions. Surely Googling the Publisher ID will only work if someone writes it as content on the site, as Google wouldn't index the JavaScript variable in the AdSense code?

rustybrick
03-13-2007, 07:04 AM
Sometimes they would index it. You can get lucky. Also there are other search engines that may pick it up. Also, code search engines.

evilgreenmonkey
03-13-2007, 07:10 AM
I'm sure that Jen has said that she decodes the publisher's domain from her referrer logs. Jen, have you been lying to us??? ;)

BuckfastMonk
03-13-2007, 07:59 AM
Hi Rob,

Im not sure but think this may help?

danieljmalone.com/tools/url-decode/

Regards,

Ryan

evilgreenmonkey
03-13-2007, 08:06 AM
Hi Ryan,

I think that this tool simply converts RFC1738 encoded characters. I'm guessing that if the publisher URL is in the long character string, it's encoded with a salt like when accessing PageRank data.

Cheers,

Rob

sussane
03-19-2007, 12:23 AM
coool trick guys, keep it up....