WordPress.org

Support

Support » Plugins and Hacks » How is he doing this with google adsense?

How is he doing this with google adsense?

  • Here is the link: http://www.college-startup.com/

    See how he has the very small and not intrusive adsense at the end of his first two blog entiries on the front page, and then when you hit “continue reading” button the same ad isn’t in the middle of the article.

    This is what I want, but haven’t been able to reproduce it with wordpress and adsense plugins…

Viewing 9 replies - 1 through 9 (of 9 total)
  • whooami

    @whooami

    Member

    Im confused .. you want a different ad, or what?

    Or you want NO ads, more ads, different placement on single.php?

    What exactly are you trying replicate?

    I want to know how he is placing his ads where they are. On the home page after the first two posts he has the ads placed right next to the “continue reading” button. How do I place the ads this way?

    Possible they just have a counter ticking off in The Loop, like so:

    <?php $post_counter++: ?>

    Then where the ad displays:

    <?php if( $post_counter <= 2 ): ?>
    
    ~ad stuff goes here~ 
    
    <?php endif; ?>

    Kaf, pardon me, but it’s nothing special about AdSense ads on the site in question, he is simply following the AdSense guidelines, which allows of placing on a single page:

    1. 3 Text Ads
    2. 3 Link Units
    3. 1 Referral of each products

    Site in question workout:
    =========================

    A. On index page, he has placed:

    1. 2 Half Banner (234×60) – Text Ads (placed on Top)
    2. 1 Large Rectangle (336 x 280) – Text Ads (placed above footer)
    Total: 3 Text Ads

    B. On single.php page, he has placed:

    1. 1 Half Banner (234×60) – Text Ads (placed between post header & content)
    2. 1 Medium or Large Rectangle – Text Ads (placed above post footer)

    That’s it!

    @leo you can follow all steps from step A upto B to get the same results.

    Rok, if you check the site again you will see:

    – post 1
    – ad
    – post 2
    – ad
    – post 3
    – post 4
    – post 5
    – related ads

    Slipping the ads between posts 1-2 and 2-3, but not between the remaining posts on the page, is what we are talking about here. Not what the AdSense guidelines are.

    Exactly what Kafkaesqui said. I will try the code you put on here and let you know if it works out.

    Have you seen the Shylock Adsense plugin which can probably do this for you – or may give you a starting point, check out my site http://www.tarkan.info to see example of its use.

    regards, Tarkan

    Not what the AdSense guidelines are.

    Kaf, I’ve posted ads limitation, Not to teach/discuss AdSense guidelines, but for the sake of some first users:

    who might have asked, why there are not ads in rest of other posts?

    Slipping the ads between posts 1-2 and 2-3, but not between the remaining posts on the page, is what we are talking about here.

    For, the ads:

    1. He has placed Half text ads inside the loop, near footer in post.php.
    2. Next he has Large Rectangle in index.php below page navigation

    As per AdSense guidelines, only 3 text ads can appear on a single page, that’s why he has got:
    a. 2 Half text ads in first two posts.
    b. 1 Large text ad in below page navigation.
    Counting to 3 text ads, so no more Text ads can appear on the index page.

    Had, he not entered “Large text ads” under page navigation, he would have got 3 Half text ads, in his first 3 posts, instead of two.

    “when you hit “continue reading” button the same ad isn’t in the middle of the article.”

    It looks like he’s getting the front page ads the way Kafkaesqui said. When you “continue reading,” it looks lik he’s bringing in a different template file (usually called single.php in most themes … or maybe index.php if you also have a home.php file in your theme). Most people have their single post view (the page with the whole post / one single post) look exactly like the site’s front page, but, in fact, it’s a different page. You can make it look however you like.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How is he doing this with google adsense?’ is closed to new replies.