WordPress.org

Ready to get started?Download WordPress

Forums

How is he doing this with google adsense? (10 posts)

  1. leo7068
    Member
    Posted 7 years ago #

    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...

  2. whooami
    Member
    Posted 7 years ago #

    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?

  3. leo7068
    Member
    Posted 7 years ago #

    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?

  4. Kafkaesqui

    Posted 7 years ago #

    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; ?>
  5. Rok
    Member
    Posted 7 years ago #

    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 (234x60) - 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 (234x60) - 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.

  6. Kafkaesqui

    Posted 7 years ago #

    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.

  7. leo7068
    Member
    Posted 7 years ago #

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

  8. tarkan
    Member
    Posted 7 years ago #

    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

  9. Rok
    Member
    Posted 7 years ago #

    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.

  10. trivum
    Member
    Posted 7 years ago #

    "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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.