Welcome to WebmasterWorld Guest from 54.167.46.29

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Adsense JS File

adsense, js

     
1:02 pm on Jan 11, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 11, 2004
posts:4
votes: 0


I read a post regarding serving Adwords using a single .JS file rather than the code. I tried to use the example code but no ads appeared. Can anyone show me an example of a site that uses this successfully?

Many thanks! :)

4:27 pm on Jan 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jenstar is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 22, 2002
posts:4663
votes: 0


Someone here was using it as a remotely called javascript file, which required a tiny change to the actualy javascript that AdSense gives you. The person received a warning from Google stating the code could not be altered in any way, which required the code be removed from the remote javascript and placed on the actual pages.

Some people are using SSI includes though, which does not require any altering to the code.

5:44 pm on Jan 11, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:June 28, 2003
posts:83
votes: 0


An "include" to make the javascript appear on your page, rather than remotely called from Google, will in all probability strip out the HTTP_REFERER field that the Javascript will need to work correctly.
6:27 pm on Jan 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jenstar is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 22, 2002
posts:4663
votes: 0


SSI includes are no problem with Google [webmasterworld.com] since you are are not altering the code in any way, and the script appears on the page when a visitor views the page.

With a javascript include (which isn't allowed because the script would need to be altered) the javascript would still be in a remote file, and would not "appear" on the page per se.