Using Adsense module with drupal site

Discussion in 'Drupal' started by e-service, Nov 9, 2010.

  1. #1
    Hi,

    I added adsense module in to my site (using drupal source), and now, I don't see any ads display on my site. Also, how do I do if I want to display ads on each article on my site?

    Thanks you!
     
    e-service, Nov 9, 2010 IP
  2. cjscully

    cjscully Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    Do you have an Adsense account? Configured your ad units on the Adsense site? Have you entered your publisher id into the config page for the module? Enabled the Adsense blocks on your pages?
     
    cjscully, Nov 11, 2010 IP
  3. mspider

    mspider Guest

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Better is to put Adsense code manually. So that you copy your adsense code from account and paste into block you want. the most easy way...
     
    mspider, Nov 11, 2010 IP
  4. e-service

    e-service Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    136
    #4
    I am using Drupal 6.14 . I installed AdSense Module and installed AdSense Injector Module. But it dosent automacic display ads .
    anybody can help me?

    Thanks you!
     
    e-service, Nov 11, 2010 IP
  5. cjscully

    cjscully Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #5
    Whether you copy the Adsense code manually or you use the Adsense module you need an Adsense account. So, again, do you have an Adsense account? Have you configured your ad units within Google Adsense? Can't help you if you don't answer the questions.
     
    cjscully, Nov 12, 2010 IP
  6. e-service

    e-service Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    136
    #6
    Yes, ofcouse, I have adsese account.
     
    e-service, Nov 12, 2010 IP
  7. cjscully

    cjscully Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #7
    The Adsense Module requires that you configure your ad units within Google's Adsense site. So you need to set up what size ads you want to display and so on.

    Then you need to enter your Adsense publisher id on /admin/settings/adsense/publisher.

    Then you need to go to /admin/build/block and configure your adsense block(s). You have to enter a description for the block, the dimensions for the ad unit you want the block to display and the Ad Slot ID (from Google Analytics). Save that and enable the block in whatever region you want it to go in.

    Your ads won't display without your Publisher ID and the Ad Slot ID from Google Analytics.

    Alternatively as someone else has already said you could simply copy the code from Google Adsense into a custom block and enable that block wherever you want.
     
    cjscully, Nov 13, 2010 IP
  8. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #8
    you can also use the old ad format, in this case you only need your adsense id.

    But honestly I don't see the use of the adsense module, simply edit your page.tpl.php or create blocks to display adsense. But it's better you get familiar with editing page.tpl.php and node.tpl.php in order to put your adsense code exactly where you want it.
     
    JamesColin, Nov 14, 2010 IP
  9. cjscully

    cjscully Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #9
    The point of using the module is that people who don't have knowledge of HTML or PHP and therefore would have trouble editing any tpl.php can fill in a few pieces of information and have their ads displayed in blocks on their sites.

    Yes, it can be done by cutting and pasting the ad code from Google into a block too if that's how you prefer to do it.
     
    cjscully, Nov 14, 2010 IP
  10. nmridul

    nmridul Member

    Messages:
    119
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #10
    When cutting and pasting the adsense code into a block make sure that the block "input type" is full html. Else it converts "<" and ">" to &lt; and &gt; and it breaks the adsense.
     
    nmridul, Nov 17, 2010 IP
  11. e-service

    e-service Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    136
    #11
    thanks you for your helps,

    now I know how to display ads on my drupal site.

    I have other question about display ads on each blog topic.
    I want to display two ads on each blog like this site : http://computerquestionhelp.com/blogs/Misc/getting-google-adsense-to-easily-work-on-drupal-6x.html

    They have one ads display on first left of blog and the other one ads on the end of blog.

    So if I want to display ads like them, should I edit page.tpl.php and node.tpl.php files ? How do I edit them?

    Thanks you!
     
    e-service, Nov 20, 2010 IP