homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

Adsense JS File
adsense, js

 1:02 pm on Jan 11, 2004 (gmt 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)

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved