Forum Moderators: martinibuster

Message Too Old, No Replies

Using the google_page_url variable

         

Squeebee

5:31 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



Hey everybody,

Look at the following from the showads.js file:

if (window.google_page_url == null) {
google_page_url = document.referrer;
if (window.top.location == document.location) {
google_page_url = document.location;
google_last_modified_time = Date.parse(document.lastModified) / 1000;
}
}

Now it looks to me like you can pass a url to adsense for it to use to generate ads. This could come in very hands as my forum software uses security features in the url which make every url different, even to view the same message. Now I could easily code PHP to strip the dynamic portions of the URL before sending it to adsense with google_page_url, and the spiders would still reach the page as an anonymous user, so I am wondering if anyone uses this feature?

ScottM

1:41 am on Jan 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unless I'm misunderstanding you, you are looking to modify the code AdSense has provided and that's against their TOS.

which make every url different, even to view the same message.

Sessions? If so, use a mod to turn them off for AdSense. If it is more or less random, you could have a flurry of googlebots on your forum and sucking up bandwidth and spidering the same page again and again.

And DON'T let me get into MSNbot and their problems with forums...

Squeebee

2:07 am on Jan 31, 2004 (gmt 0)

10+ Year Member



Yeah I am worried about it being a modification, just odd that they provide a variable that you can't use.

jomaxx

2:42 am on Jan 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[webmasterworld.com ]

I would definitely contact them for permission before using this field to solve any problems.