Welcome to WebmasterWorld Guest from 54.221.28.179

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Adsense JS File

adsense, js

     

ahalliday

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

10+ Year Member



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! :)

Jenstar

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

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



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.

james007

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

10+ Year Member



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.

Jenstar

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

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



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month