View Single Post
  #1 (permalink)  
Old 02-20-2005, 01:00 AM
PaulV PaulV is offline
Junior Member
 
Join Date: Feb 2005
Posts: 9
Default Adding Google on free hosted forums and stuff

This one you can use to place YOUR Google Adsense right over the top of free hosted advertising like "proboards" (free forum) where they already place there own ads on your site. Or just use it to seemlessly place google anywhere you want....

Not sure how ethicle this is but anyway....

There is two things you need to do.

The first is create a page with your google ad on it in your html editor or just copy the one below and change the code to yours.

Code:
<html>

<head>
<link title="The title of your page - make sure you have your primary keyword or phrase in here" href="http://yourdomain.com" type="text/html"><link title="the title of your page again" href="http://yourdomain.com" type="text/html">

<title>Your title agian lol</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" Content="pack this with keywords and keyword phrases">
<META NAME="description" Content="again a good description of your site no more than 250 characters long">
<meta name="robots" content="index, follow">
</head>

<body topmargin="0" leftmargin="0" bgcolor="#000000">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx411xxxxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_ad_type = "text";
google_color_border = "333333";
google_color_bg = "000000";
google_color_link = "FF3300";
google_color_url = "FF6600";
google_color_text = "CCCCCC";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  </script>
</div>
</body>

</html>
Remember to change the google code to yours.... and the page background color..... Just page that into frontpage or something and play with the look of it. Then upload it to your host.

Then you need to add some html to the page you want the google to show up.

Code:
<CENTER>
<div style="position: absolute; top: 150; left: 0; width: 100%; height: 90; overflow: visable">
  <iframe name="FRAME5"  width="800" height="90" src="http://yourdomain/nameofthegooglepage.html" frameborder="0" scrolling="no">
  </iframe>
</div>
</CENTER>
The code above can go pretty much anywhere below the <body> part of your html -- It will center your google ads no matter what size screen the visitor uses. just adjust the (top: 150) part to move the ad up or down the page to where you want it. It is designed to be used with a 728x90 billboard but will work with any size horizontal banner.

If you want it to be positioned 200px down the page just change the top: 150 to 200...

cheers
Paul V
Reply With Quote