Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > Google AdWords & AdSense Forum

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 12-17-2005, 04:48 PM   #1 (permalink)
Noogle
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
eelsource
Can I put adsense code in a javascript include?

Can I use put adsense code in a js file and do <Script src="adsense.js" type="text/javascript"></script> in my html file? In this way, if I need to make changes to the adsense code, I can just make change in one file and it'll be effective in all the html files that include the adsens.js?

Has anyone tried this before?
eelsource is offline   Reply With Quote
 
Sponsored Links
Old 12-17-2005, 11:30 PM   #2 (permalink)
Google Guru
 
intelliot's Avatar
 
Join Date: May 2004
Posts: 2,528
Thanks: 15
Thanked 128 Times in 34 Posts
intelliot has disabled reputation
No. Without special permission from Google, you can't modify the AdSense code. The best way to do what you describe is with PHP includes or SSI.
intelliot is offline   Reply With Quote
Old 12-18-2005, 08:16 AM   #3 (permalink)
Elite Googler
 
Join Date: Nov 2004
Location: Kansas City, Missouri
Posts: 1,065
Thanks: 0
Thanked 1 Time in 1 Post
Lupine1647
Well, putting the Adsense code into a JS file isn't really changing the code. Ask Google if you want to know.
Lupine1647 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
adsense code sozer Google AdWords & AdSense Forum 6 12-12-2008 10:09 PM
Insert Adsense Code to RSS lukman143 Google AdWords & AdSense Forum 2 10-11-2006 09:38 PM
JavaScript scroller that can scroll AdSense ads ? Razvan Google AdWords & AdSense Forum 4 08-29-2005 01:42 PM
Can I have more than one website on one adsense code? Yvezzx Google AdWords & AdSense Forum 4 07-31-2005 02:55 PM
Can I put adsense code in a javascript include? eelsource Google AdWords & AdSense Forum 2 01-01-1970 12:33 PM


All times are GMT -8. The time now is 01:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community