by admin
23. July 2008 04:10
I recently tried to add google adsense ads on my office live page at http://www.vishalseth.net. It wasn't straightforward but you can do it. Initially, I saw the HTML module available in the site designer and thought I could just use that; but if you've tried it that doesnt work either... or atleast did not work for me. I had to use an iframe... This is what I finally did to make it work:
-
Create an empty html file e.g. AdSense.htm on my computer
-
paste the AdSense code from google including the script tags into the htm file using notepad. The html file at this point only contains the code in the script tags and nothing else (no <html>, <head> or <body> tags either.)
-
save and close the file
-
upload the file to to your documents folder in your office live account. when logged into site builder, the link to the document library should be available on the left. Clicking on it should alloow you to upload any files into the library.
-
in the site builder, open the page onto which you wish to add the adsense ads. add a html module onto the page.
-
for the html, insert the following: <iframe frameborder="0" scrolling="no" src="http://yoursite.com/Documents/adsense.htm" width="770" height="110"></iframe>. Save.
-
yoursite.com is the base url of your site
-
height, width can be set to suit the dimensions of the ads you're displaying.
The ads should now be visible on your site...