Hi Guys, I am new to all this, I was wondering how we can add add adsense codes to left sidebar, exactly where we want. Moreover, how to add this code to hundred's of same pages. Any good way for doing this? It needs to be approved by Google. Thanks!
When I use ASP and need to add the same content to more then one page I user server side includes, this way I can preform a change one place and it will be changed everywhere. Notes: 1. The code for server side include is : <!--#include virtual="/path" --> 2. Make sure your server enables the server side includes ( sometimes it is turned of to improve the site's security ) 3. I never used Goggle adsense but I don't believe that there will be a problem - since the result is a HTML file.
Thanks Adi for your reply. First of all, I don't know ASP, I just want to paste adsense on the left sidebar below the links. For me, I consider it copy-pasting the code. Now what I am interested in asking is how to paste that same piece of code to those many pages at the same place. Your answer was using server side include. Since I don't know what actually are they, I wish if you can help me out and let me understand. Suppose this is the piece of code for adsense <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxx"; google_alternate_color = "ffffff"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_channel ="xxxxxxxxxx"; google_ad_type = "text_image"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "666666"; google_color_text = "333333"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code (markup): Then how to implement the server side include? I need some details on this question please as am not having ASP idea. Can we personally see either the SSI is enabled or we have to ask the host? Ok, sounds good that you have never used Google Adsense but you are confident it will work. One big deciding question, Is it going to ban me on Google Adsense? Is it ok with Google TOS? Thanks for your help.
I assumed you know ASP since this is the sub form for ASP... but the technology isn't what's important - the principals are... 1. You create a HTML file with the code you want to be included. 2. Write the line : <!--#include virtual="/path" --> (path is the virtual path to your HTML file) where you want your adds will be displayed. When the server generates the HTML which will be sent to the client, it will replace your include with the HTML file. Just try and see if it works(there are many examples for it over the net), if it doesn't work then query your host. Don't know - maybe someone else will be able to help you. Just remember that copy & paste is not the solution - invest some work to prevent it and you will thank yourself later. Good luck
You are right but I am afraid as I have heard some banned cases. I will look in to this. By the way, if it is an shopping cart site, ecommerce based so where we can find the pages on the server .... sounds stupid? Well I was trying to get more in to these things ..... I mean where we can find the asp pages of site, is it always found in a particular directory to edit... Thanks.
using an SSI can't get you banned in Google because it runs server side. Googlebot only sees the merged html and cannot posibly know that you've used an SSI. regards
Ok, many thanks John for sharing your views. To confirm everything from a reliable and authority source, I have contacted Google and hope for the positive reply. Just got a reply mentioning we can use .js file, copy-paste adsense code in those files, call it from any page to see adsense there. But the problem is they further told me that this way I will NOT get targetted ads on ASP pages. Any solution?
ok, that's a most peculiar response. Would you post the question and reply so we can all see it. regards
Sure, why not. This was the reply from Google Staff. Since I emailed twice with two different topics so I have copy of my first email but I cannot see second email copy. But here is the reply I hope this helps and many of us still have confusions for using this method and thinks we might get banned. Even I was thinking the same. But It is very safe and a good solution for HTML pages but not for ASP pages. I would love to find a solution! as soon as possible