1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to paste adsense at correct place (same place) on hundred's of shopping cart page

Discussion in 'C#' started by GAdsense, Mar 26, 2007.

  1. #1
    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.
    SEMrush
    Thanks! :)
     
    GAdsense, Mar 26, 2007 IP
    SEMrush
  2. Adi

    Adi Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    Adi, Mar 26, 2007 IP
  3. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #3
    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. :)
     
    GAdsense, Mar 26, 2007 IP
  4. Adi

    Adi Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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 :)
     
    Adi, Mar 26, 2007 IP
  5. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #5
    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.
     
    GAdsense, Mar 26, 2007 IP
  6. saurabhj

    saurabhj Banned

    Messages:
    3,461
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #6
    which shopping cart you are using?

    -SSJ
     
    saurabhj, Mar 27, 2007 IP
  7. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Does it going to effect?

    What are the options?
     
    GAdsense, Mar 27, 2007 IP
  8. Free Born John

    Free Born John Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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
     
    Free Born John, Mar 28, 2007 IP
  9. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #9
    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? :(
     
    GAdsense, Mar 28, 2007 IP
  10. Free Born John

    Free Born John Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    ok,

    that's a most peculiar response. Would you post the question and reply so we can all see it.

    regards
     
    Free Born John, Mar 28, 2007 IP
  11. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #11
    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 :)
     
    GAdsense, Mar 28, 2007 IP