Google Adsense not displaying on page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfaisalwarraich
    New Member
    • Oct 2007
    • 194

    Google Adsense not displaying on page

    Hi everybody, i have got 3 ads code form google which i wana display on a page. but after implementing dat code only one ad on a page is displayed. please tell me wats wrong with it?

    thanx
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Have you got some code there in white? In other words, post your code please.

    Comment

    • mfaisalwarraich
      New Member
      • Oct 2007
      • 194

      #3
      Yes please here is the code:
      Code:
        <script type="text/javascript"><!--
        google_ad_client = "pub-0551362145452240";
        /* 120x600, created 1/13/10 */
        google_ad_slot = "0421494667";
        google_ad_width = 120;
        google_ad_height = 600;
        //-->
        </script>
        <script
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
        type="text/javascript">
        </script>
      second ad is:

      Code:
       <script type="text/javascript"><!--
        google_ad_client = "pub-0551362145452240";
        /* 300x250, created 1/13/10 */
        google_ad_slot = "8352662966";
        google_ad_width = 300;
        google_ad_height = 250;
        //-->
        </script>
        <script
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
        type="text/javascript">
        </script>
      Third is:
      Code:
       <script type="text/javascript"><!--
        google_ad_client = "pub-0551362145452240";
        /* 468x60, created 1/13/10 */
        google_ad_slot = "1374883367";
        google_ad_width = 468;
        google_ad_height = 60;
        //-->
        </script>
        <script
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
        type="text/javascript">
        </script>
      I am not able to display all ads on a single page. please guide me how i can do this. thank u.

      Comment

      • mfaisalwarraich
        New Member
        • Oct 2007
        • 194

        #4
        As soon as the page placed online it worked. thank u for ur help and support.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Hmm, interesting. It's probably to do with testing locally. Perhaps you should use a placeholder when testing locally and the real code when on your site.

          Comment

          • mfaisalwarraich
            New Member
            • Oct 2007
            • 194

            #6
            how i can use a place holder? i was trying to put them in inside a div locally. is there any way while testing them locally? please tell me. thank u.

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              You can use a div or an image of the right size. It can be blank if you want. There should also be a test mode for Adsense which you should be able to use.

              Comment

              Working...