Google Adwords - More
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsPay Per Click Search EnginesGoogle Adwords - More

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old February 2nd, 2004, 03:39 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Contributing User
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Texas!
Posts: 1,135 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 9 h 4 m 3 sec
Reputation Power: 10
Send a message via AIM to Phoenix
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. I won't have a chance to test it out myself till later this week. Any ideas? I have heard of using SSI to do something similar for site wide changes.

Ben

Reply With Quote
  #2  
Old February 2nd, 2004, 04:46 AM
BroadProspect BroadProspect is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Israel
Posts: 411 BroadProspect User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 23 m 50 sec
Reputation Power: 7
Quote:
Originally Posted by Phoenix
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. I won't have a chance to test it out myself till later this week. Any ideas? I have heard of using SSI to do something similar for site wide changes.

Ben


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

Reply With Quote
  #3  
Old February 2nd, 2004, 08:36 AM
Gringo's Avatar
Gringo Gringo is offline
Moderator
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Madrid, Spain
Posts: 1,382 Gringo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 10 sec
Reputation Power: 9
I'm doing it with SSI includes, works fine.

Gringo.

Reply With Quote
  #4  
Old February 2nd, 2004, 12:39 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Contributing User
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Texas!
Posts: 1,135 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 9 h 4 m 3 sec
Reputation Power: 10
Send a message via AIM to Phoenix
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?

Reply With Quote
  #5  
Old February 3rd, 2004, 01:20 AM
Gringo's Avatar
Gringo Gringo is offline
Moderator
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Madrid, Spain
Posts: 1,382 Gringo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 10 sec
Reputation Power: 9
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.

Reply With Quote
  #6  
Old April 15th, 2004, 09:41 AM
trackingroi trackingroi is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 14 trackingroi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to trackingroi
Hi Phoenix, what is your website written in? Pure HTML, JSP, ASP, CFML, etc.

Reply With Quote
  #7  
Old April 15th, 2004, 10:20 AM
hulkster's Avatar
hulkster hulkster is offline
Big Green Guy!
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 297 hulkster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 27 m 40 sec
Reputation Power: 7
Quote:
Originally Posted by Phoenix
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. I won't have a chance to test it out myself till later this week. Any ideas? I have heard of using SSI to do something similar for site wide changes.

Ben



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

Reply With Quote
Reply

Viewing: SEO Chat ForumsPay Per Click Search EnginesGoogle Adwords - More > Optimizing Adsense Code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek