Do i need to generate a different "adsense code" for every page of my site?

Discussion in 'AdSense' started by mapeste, Nov 8, 2007.

  1. #1
    I'm new to adsense. And i have a site with 50 pages. my question is. do i need to generate a separate "adsense code" for every page?..

    I notice that each adsense code that i generate have a different "google_ad_slot" value. Is this the thing that google uses to monitor if you have exceeded the 3 ads per page limit?

    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXXXXX";
    //728x15, created 11/7/07
    google_ad_slot = "7888978470";
    google_ad_width = 728;
    google_ad_height = 15;
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
     
    mapeste, Nov 8, 2007 IP
  2. jamcon

    jamcon Peon

    Messages:
    160
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, you do not need to generate separate AdSense code for each page. You can re-use the same code as long as your publisher ID remains the same.

    If my understanding is correct, the "google_ad_slot" parameter simply tells advertisers more information about where on your site they can place their ads. Someone feel free to correct me if I'm wrong.
     
    jamcon, Nov 8, 2007 IP
  3. Rolex

    Rolex Banned

    Messages:
    265
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    depends on what design you want .
     
    Rolex, Nov 8, 2007 IP
  4. RHIMLER14

    RHIMLER14 Peon

    Messages:
    431
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No!!

    Unless you wanna change colors, layout, format, etc


    You can also create channels to track certain sites / pages!


    .
     
    RHIMLER14, Nov 8, 2007 IP
  5. swoop

    swoop Active Member

    Messages:
    469
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    90
    #5
    My older Adsense ads work fine without the ad_slot line.
     
    swoop, Nov 8, 2007 IP
  6. Methane

    Methane Peon

    Messages:
    227
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    When I looked at this thread title from the main page I guessed that the person who started it would have 1 post on this forum. DING DING DING! I can't believe I guessed right. <-- Not trying to be an ass though, lol.
     
    Methane, Nov 8, 2007 IP
  7. Zanswer

    Zanswer Peon

    Messages:
    264
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you want to track each page, you can assign a different channel to every page you have, but rest of the code remains the same.
     
    Zanswer, Nov 8, 2007 IP
  8. mapeste

    mapeste Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ok thanx guys.
     
    mapeste, Nov 8, 2007 IP
  9. enquiries0009

    enquiries0009 Banned

    Messages:
    1,421
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No need you can put single code in all pages
     
    enquiries0009, Nov 8, 2007 IP
  10. indianseller

    indianseller Banned

    Messages:
    372
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    u dont have to crate the diff code for each page
     
    indianseller, Nov 8, 2007 IP