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.

AdSense in Wordpress

Discussion in 'AdSense' started by rob2k8, Aug 19, 2008.

  1. #1
    Hi,

    I have a question. But I don't know where is the right thread for this one. But I hope I could here some answers here.

    Anyway, I have seen wordpress sites having AdSense ads in the middle of the post. I mean, for example, in 1 page, there are total of 10 posts displayed, and I've seen people placing their ads after the 5th post, then after the AdSense ads will be the continuation of the 6th post and so on.

    I hope someone understood my point.

    Regards,
    Robert
     
    rob2k8, Aug 19, 2008 IP
    rob485 likes this.
  2. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #2
    You can put adsense code anywhere in your post in wordpress blog.

    just copy the adsense code and put is anywhere in your content.
     
    resaik_king, Aug 19, 2008 IP
  3. rob2k8

    rob2k8 Peon

    Messages:
    433
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you read all that I have said in my post? Please be serious, don't just look forward on adding your number of post. Because I consider this as a spam. Thanks.
     
    rob2k8, Aug 19, 2008 IP
  4. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #4
    That won't do as wordpress do not allow direct insertion of javascripts in post. You either do it by editing the single.php file or by using Adsense Plugin for Wordpress.
     
    Abhik, Aug 19, 2008 IP
  5. rob2k8

    rob2k8 Peon

    Messages:
    433
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do people get my point? Anyway, Abhik, so you are trying to say that its against the TOS of placing ads at the middle of a page?

    Just a simple note to everyone, please read the whole text on this thread. I'm looking for a real answer on my question.
     
    rob2k8, Aug 19, 2008 IP
  6. nicholas777

    nicholas777 Peon

    Messages:
    342
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello, Rob. I have a new blog also and I've had the same problem; fixed it yesterday. :) The link is in the signature, if you want to check it out.

    So you want to insert adsense after post nr X, right? This is a tutorial I've found on the web:
    http://www.tamba2.org.uk/wordpress/adsense/ - it will help you with most of the adsense placements.
    Basically, you have to insert these lines of code in the index.php file (as said in the tutorial). I've also inserted them in archive.php and if you want to, you can put them in single.php.
    You have to put this ABOVE the while loop (this is where the loop starts:<?php if (have_posts()) : while (have_posts()) : the_post(); ?> ):
    *put this above loop*
    <?php
    $postnum = 1;
    $showadsense1 = X; /*where X is the post no. AFTER you want to place adsense*/
    ?>
    Code (markup):
    Right before the
    endwhile;
    Code (markup):
    you must write this:
    <?php if ($postnum == $showadsense1) {
    echo '
    ADSENSE CODE
    ';
    } ?>
    <?php $postnum++; ?> 
    Code (markup):

    If you want to center the ads, use:
    echo '<center>ADSENSE CODE</center>
    Code (markup):

    Hope I've helped.
     
    nicholas777, Aug 19, 2008 IP
  7. joelwyn

    joelwyn Active Member

    Messages:
    462
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Hi Robert, just to mention. Your question is quite unclear as you just tell us the statement and you did not tell us what you want ? You want how to do it ? Can you do it that way or what ?
    If you are asking how to do it, you just follow the way post by Abik.
    If you are asking whether you allow to do that or not ? From my experience, Yes.
     
    joelwyn, Aug 19, 2008 IP
  8. TheVccMatey

    TheVccMatey Peon

    Messages:
    5,346
    Likes Received:
    208
    Best Answers:
    0
    Trophy Points:
    0
    #8
    TheVccMatey, Aug 19, 2008 IP
  9. shabbirbhimani

    shabbirbhimani Well-Known Member

    Messages:
    1,063
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #9
    Or have a good template like the one I use in my blog.
     
    shabbirbhimani, Aug 19, 2008 IP
  10. chuckypita

    chuckypita Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Adsense plugin? LOL

    Vroooooooooooooooooooooooom!!! Way over my head at the beginning - I just figured it out.

    Thanks for the advice.
     
    chuckypita, Aug 19, 2008 IP
  11. jimkarter

    jimkarter Notable Member

    Messages:
    5,168
    Likes Received:
    347
    Best Answers:
    0
    Trophy Points:
    235
    #11
    If I understood it correctly, then what you are asking is how somebody can insert an ad in between, lets say 5th and 6th post on the blog.

    Edit the index.php file and do what nicholas777 has told.
     
    jimkarter, Aug 19, 2008 IP
  12. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #12
    You didn't get my point, I am not doing this only to make many post. Check my post in my blog here -it that what you mean? That is very simple just copy the javascript code in the middle of your post. That's it no more no less...

    or if you want it automatically you can edit your temaplate and use that PHP code posted by nicholas777
     
    resaik_king, Aug 19, 2008 IP
  13. ChrisJacobson

    ChrisJacobson Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    To maximize your AdSense income you'll want to place your ads above the page crease (what people see without having to scroll down). Aligned INSIDE posts and to the left is the highest paying position... use the 336 pixel block for that.
     
    ChrisJacobson, Aug 19, 2008 IP
  14. rob2k8

    rob2k8 Peon

    Messages:
    433
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks for the help people! Problem solved! ;) By the way, is this legal for Google's TOS?
     
    rob2k8, Aug 20, 2008 IP
  15. alokverma

    alokverma Peon

    Messages:
    430
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I think you can only put adsense on the self hosted wordpress blogs! i have tried for my blogspot blog they are accepting adsense and earning money also..
     
    alokverma, Aug 21, 2008 IP