|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Optimizing Adsense Code
Has anyone had a chance to experiment with taking the javascript adsense ads (placed in the html) and parsing them in an external file. Such as the following:
<SCRIPT Language="Javascript" src="/js/adsense.js"></SCRIPT> I am a purist when it comes to optimization, and just looking for additional ways to keep my code as clean and pretty as possible, without too much javascipt encroachment. Ben
__________________
Rank Smart Search Marketing - Search Engine Roundtable - Search Marketing Association - North America |
|
#2
|
|||
|
|||
|
Quote:
see the goiogle adsense guides, lot's of samples there
__________________
Link Swapper - a FREE link exchange plug-in and directory add-on for your website Crawler Alert - a FREE service which automatically sends you an email notification whenever a search engine crawler is scanning your website |
|
#3
|
||||
|
||||
|
I'm doing it with SSI includes, works fine.
Gringo. |
|
#4
|
||||
|
||||
|
Great yall! I will check out the guides for sure. Gringo out of curiousity how do you set up your SSI to work with the ads?
|
|
#5
|
||||
|
||||
|
Very simple, and there are a number of ways you can do it. I'm mostly using PHP include statements ...
Code:
<? include("http://www.mydomain.com/files/adsense.html") ?>
The adsense.html file is simply the html code for a table and the adsense js code inside the table. I just include that 1 line in all my website pages. This technique, while of course it works for AsSense, is mostly used for site-wide menus, footers, headers, etc. Because you just have to change one file and your entire site is updated. Gringo. |
|
#6
|
|||
|
|||
|
Hi Phoenix, what is your website written in? Pure HTML, JSP, ASP, CFML, etc.
|
|
#7
|
||||
|
||||
|
Quote:
I don't use SSI/PHP (although you could and the resulting HTML would be the same), but that is exactly what I do - do a "View Source" on The Incredible Hulk, my Christmas Lights, and/or my BBQ Grill web pages to list a few examples! ;-) Note that the .js files are different names (hulk.js, xmas.js, bbq.js) - I did this when I first set it up so I could easily play with the colors, and this came in REAL handy when channels were introduced since it was trivial to identify each set of pages by just tweeking one file. alek |
![]() |
| Viewing: SEO Chat Forums > Pay Per Click Search Engines > Google Adwords - More > Optimizing Adsense Code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|