Need Advice On How To Avoid 3 Adsense Block Limit w/ Wordpress

by Mgriff
11 replies
I have a worpress site with about 10 posts on the homepage. A total of 50 posts.

I know that you can only have 3 adsense units per page, but I would like to have one adsense block per post.

If I did this, then there would be 10 adsense units on my homepage (1 per post). This would violate adsense guidelines and may get me banned. :confused:

Anyways, Is there a good adsense plugin that will automatically limit the number of adsense ads to 3 per page?

Any other advice would be appreciated. Thanks.
#adsense #advice #avoid #block #limit #w or #wordpress
  • Profile picture of the author Gail_Curran
    Why not just set the number of posts that appear on the front page to 3?
    {{ DiscussionBoard.errors[4124252].message }}
    • Profile picture of the author Mgriff
      Originally Posted by Gail_Curran View Post

      Why not just set the number of posts that appear on the front page to 3?
      Well, I also would have an adsense block in the sidebar, so then I would only be able to have 2 posts showing which is possible, but not ideal.

      I have heard that there is a plugin to solve this problem, but I don't know what it is.
      Signature
      {{ DiscussionBoard.errors[4124278].message }}
      • Profile picture of the author Dan C. Rinnert
        Doesn't AdSense Manager (WP plugin) do that for you?

        If not, just edit your theme so that the AdSense code will only display on the first three posts on a page.
        Signature

        Dan's content is irregularly read by handfuls of people. Join the elite few by reading his blog: dcrBlogs.com, following him on Twitter: dcrTweets.com or reading his fiction: dcrWrites.com but NOT by Clicking Here!

        Dan also writes content for hire, but you can't afford him anyway.
        {{ DiscussionBoard.errors[4124303].message }}
        • Profile picture of the author Mgriff
          Originally Posted by Dan C. Rinnert View Post

          Doesn't AdSense Manager (WP plugin) do that for you?

          If not, just edit your theme so that the AdSense code will only display on the first three posts on a page.
          I will check out that plugin, thanks for the tip.
          Signature
          {{ DiscussionBoard.errors[4124435].message }}
      • Profile picture of the author Jeremy Banks
        Put the block in the side, and then use advertisement management plugin to add the ad in each post. I also recommend if you use a square to put it in a div and set the text to wrap around it. the css would be something like

        Code:
        <div style="display:block; float:right; margin:5px"> adsense here</div>
        I just punched that off the top of my head so double check by doing a google search.

        Go to settings and select reading, set 2 posts to show on homepage.

        Also don't worry about displaying too many, if you have 5 posts on the homepage it will only show 3 ads anyways.
        {{ DiscussionBoard.errors[4124312].message }}
        • Profile picture of the author Mgriff
          Originally Posted by Jeremy Banks View Post

          Put the block in the side, and then use advertisement management plugin to add the ad in each post. I also recommend if you use a square to put it in a div and set the text to wrap around it. the css would be something like

          Code:
          <div style="display:block; float:right; margin:5px"> adsense here</div>
          I just punched that off the top of my head so double check by doing a google search.

          Go to settings and select reading, set 2 posts to show on homepage.

          Also don't worry about displaying too many, if you have 5 posts on the homepage it will only show 3 ads anyways.
          This is exactly what I was looking for. Thanks so much for the help. And yes, I agree with the text wrap css that you mentioned.
          Signature
          {{ DiscussionBoard.errors[4124463].message }}
        • Profile picture of the author Mgriff
          Originally Posted by Jeremy Banks View Post

          Put the block in the side, and then use advertisement management plugin to add the ad in each post. I also recommend if you use a square to put it in a div and set the text to wrap around it. the css would be something like

          Code:
          <div style="display:block; float:right; margin:5px"> adsense here</div>
          I just punched that off the top of my head so double check by doing a google search.

          Go to settings and select reading, set 2 posts to show on homepage.

          Also don't worry about displaying too many, if you have 5 posts on the homepage it will only show 3 ads anyways.
          Jeremy,
          To be clear, is the plugin you are referring to called Advertising Manager? Just want to make sure I have the right one.
          Thanks again
          Signature
          {{ DiscussionBoard.errors[4124537].message }}
      • Profile picture of the author tpw
        Originally Posted by Mgriff View Post

        Well, I also would have an adsense block in the sidebar, so then I would only be able to have 2 posts showing which is possible, but not ideal.

        I have heard that there is a plugin to solve this problem, but I don't know what it is.

        You can edit the Main Index Template at index.php to strip the adsense from the posts inserted on that page.

        I don't know of a plugin that does that for you, but if you can do some basic php hacking, you could do it yourself with a preg_replace.

        The folks in the Programming Talk Sub Forum might be able to help you.
        Signature
        Bill Platt, Oklahoma USA, PlattPublishing.com
        Publish Coloring Books for Profit (WSOTD 7-30-2015)
        {{ DiscussionBoard.errors[4124337].message }}
        • Profile picture of the author Dan C. Rinnert
          Easier than pi.

          <?php
          if ( $post_count <= 3) { echo "<!-- insert ad code here -->"; }
          ?>
          Signature

          Dan's content is irregularly read by handfuls of people. Join the elite few by reading his blog: dcrBlogs.com, following him on Twitter: dcrTweets.com or reading his fiction: dcrWrites.com but NOT by Clicking Here!

          Dan also writes content for hire, but you can't afford him anyway.
          {{ DiscussionBoard.errors[4124407].message }}
          • Profile picture of the author tpw
            Originally Posted by Dan C. Rinnert View Post

            Easier than pi.

            <?php
            if ( <= 3) { echo "<!-- insert ad code here -->"; }
            ?>

            Nice suggestion Dan, but I think he put the actual Adsense code inside of his post.
            Signature
            Bill Platt, Oklahoma USA, PlattPublishing.com
            Publish Coloring Books for Profit (WSOTD 7-30-2015)
            {{ DiscussionBoard.errors[4124432].message }}
        • Profile picture of the author Mgriff
          Originally Posted by tpw View Post

          You can edit the Main Index Template at index.php to strip the adsense from the posts inserted on that page.

          I don't know of a plugin that does that for you, but if you can do some basic php hacking, you could do it yourself with a preg_replace.

          The folks in the Programming Talk Sub Forum might be able to help you.
          A little too technical for me, but thanks anyways for the tip.
          Signature
          {{ DiscussionBoard.errors[4124469].message }}

Trending Topics