WordPress.org

Ready to get started?Download WordPress

Forums

Adsense (14 posts)

  1. remdog
    Member
    Posted 8 years ago #

    I had a quick question maybe other people have been experiencing on their blogs. I have adsense in my sidebar and in between my first and second post. Things were going smoothly for quite a while and then like maybe 2 or 3 days ago the ads in my sidebar don't show up and the ads between my posts are not matching my content.

    But when I go to a permalink or single page the ads are perfect. I get spidered several times per day now and I was wondering what may be causing this if it was Google who is messing around with something or maybe I need to make some changes to my template.

    Has anybody experienced this at all? I have 3 other blogs with adsense in the exact same spots all with WordPress and haven't run into this same issue.

    Thanks

  2. remdog
    Member
    Posted 8 years ago #

    ok thanks!

  3. charle97
    Member
    Posted 8 years ago #

  4. remdog
    Member
    Posted 8 years ago #

    Thanks I'll take a look...

    So you don't think it is Google then? Only reason I ask is I never had a problem for months and I haven't even touched the code... then one day... boom!

  5. remdog
    Member
    Posted 8 years ago #

    OK I added the codes but I had to put this one in my header.php file
    <!-- google_ad_section_start -->

    And this one in my footer.php
    <!-- google_ad_section_end -->

    Is that ok to put them separated in different files??

  6. charle97
    Member
    Posted 8 years ago #

    yes, but that may be too wide a section. around the_content tag would be better.

  7. remdog
    Member
    Posted 8 years ago #

    Would this work in my header.php??

    <!-- google_ad_section_start -->
    <div id="content">
    <!-- google_ad_section_end -->
    <!-- end header -->

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    remdog: No no, you're misunderstanding here. Those tags tell google what text to look at when determining what adsense ads to show. So, ideally, you want to put it around your actual post text.

    Remember, all that template code stuff is just to build a single HTML page that the browser sees. So what you want to do is to figure out where your actual post content is created in that page (probably in index.php) and put those tags in there around that area. See?

    Note that even after adding those tags, it may take a week or more for Google to notice and changes to happen.

  9. charle97
    Member
    Posted 8 years ago #

    i'm referring to "the_content tag" within the loop.

    And... google could be the problem with your ads not showing up.

  10. remdog
    Member
    Posted 8 years ago #

    Thanks guys. I put the tags in the index.php file before and after my content tags. I will give it a week or more. I get crawled each day but maybe that doesn't matter.

    What are the chances it is Google's problem??

  11. savemyhome
    Member
    Posted 8 years ago #

    I'm new to WordPress. Are we able to add the Adsense code to the blogs that are hosted on the free WordPress website?

    If so, are there instructions for doing this?

    Thanks,
    Beth Freeman

  12. Michael Bishop

    Posted 8 years ago #

    Beth, at this point, I'm not aware of adsense on the wp.com hosted blogs, but you'll find more help at http://wordpress.com/forums

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    No, they don't allow adsense at the moment. See here:
    http://faq.wordpress.com/2005/12/08/adsense/

  14. Mark (podz)
    Support Maven
    Posted 8 years ago #

    For all wordpress.com issues, use their forums or the feedback link inside your blog.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags