Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense with SessionIDs

getting google adsense to work with sessionids

         

DanSampson

5:31 pm on May 6, 2004 (gmt 0)

10+ Year Member



Has anyone been able to get Adsense to work while still using dynamic sessionids?

I have found a solution but Google has told me it is against their T&C. I was wondering if anyone had a better solution then what I found.

If you add the following code to the bottom of the adsense code, it should work.
google_page_url = [domain.com...]

My problem is, is when google spiders my site I remove the sessionid for them. That way they don't crawl our pages a million times and shut us down for "spamming" them.

Thanks,

Dan sampson

disgust

10:22 pm on May 7, 2004 (gmt 0)

10+ Year Member



you can't.

see, even if you can get google to see the pages without session id's (very possible), this won't help you at all:

[yoursite.com...]

and

[yoursite.com...]

google (read: adsense) sees as two different pages. even if it went there previously, without session hashes, and determined what should be served there, this won't do you ANY good- for it to work they would HAVE to crawl every sessionhash- which isn't possible.

it could determine the correct ads for a page, but your users don't use that url. you need to remove the session hashes completely or ditch adsense.

a1call

5:51 am on May 10, 2004 (gmt 0)

10+ Year Member



Hi,
I have adsense on my forum with ses. ids. The ads are all b. board related.

expert_21

11:23 am on May 10, 2004 (gmt 0)

10+ Year Member



i think it is not board related, rather your site's overall theme.

Teknorat

7:09 am on May 11, 2004 (gmt 0)

10+ Year Member



A site I'm working for uses SessionID's. However there is a static version of the page. Should I attempt to keep ads from appearing on the dynamic version or just hope for the best?

JinxBoy

9:52 am on May 13, 2004 (gmt 0)

10+ Year Member



hope for the best. My main site is dynamic too, and only when the session ID is triggerd by SQL the first time, it does not show an ad, after that (when the session is still running) ads DO display, and seem to be perfectly targetted.

DanSampson

12:24 am on May 14, 2004 (gmt 0)

10+ Year Member



Ok. Here is what I have found.

1) When google crawls my sites I remove the sessionid from the url (www.domain.com/index.php instead of www.domain.com/sessionid/index.php)

2) When I removed the sessionid from the home page google gives me a proper ad.

3) When I go through the site, the pages that have been spiders WITHOUT the sessionid, it generates proper ads.

So what I think is happing is google creates somewhat of a session variable on their end that stores my domain name and compares that to what they have.

Since this seems to be the case, my ads are working on 90% of my pages. Google just needs to finish spidering my site.

Hope this helps.

Dan

Teknorat

1:27 am on May 14, 2004 (gmt 0)

10+ Year Member



Last night I turned on Google ads on a site which uses SessionID's in the url on dynamic pages. At first everything was working nicely on both the static and dynamic versions. About 5 minutes later though as more people logged on and moved around with Session ID's not only did the ads on session id pages not display but ads on the Static pages began to mess up as well. I had to turn off the ads and am now rebuilding the entire static site. Bottom line here is: Don't use Adsense if you're using session id's in the url. Unfortuantly we have to wait quite a while before we can fix this problem. A temporary solution I'm thinking of doing is turning on the ads, rebuilding, then turning them off. This way they will only be displayed on the static pages.