• The main page of my blog is showing adsense ads on blogs instead of the topic I’m posting. My blog is located at blog.mysite.com with mysite being an example and not the actual domain. If I click on categories or a specific post, then the adsense ads are related to my content.

    How do I fix this problem?

Viewing 15 replies - 1 through 15 (of 18 total)
  • For example use “example.com” as advised by the WWW gurus and it is reserved exactly for that (i.e. you can NOT register it).
    mysite.com is a real website!

    So, who put the adsense code in your blog?

    I’m trying to wrap my head around this but I’m not understanding this. If it’s your blog, didn’t you put the adsense there yourself? It sounds like you’ve places the script within the loop instead of outside of it.

    Can we see an example of this?

    Thread Starter success2be

    (@success2be)

    https://www.google.com/adsense/support/bin/answer.py?answer=23168

    You might consider putting the targeting stuff in your theme’s index.php on either side of the_content() call in The_Loop.

    That’ll help google with that page.

    Hmm, even I haven’t seen that before. Getting tired of Adsense picking up on ‘blog’ all the time even with knocking them off.

    Thread Starter success2be

    (@success2be)

    I’ve wrapped the div tag <div id=”contentmiddle”> and its inner guts with

    <!– google_ad_section_start –>

    <!– google_ad_section_end –>

    but I don’t know if this is correct.

    Well, you could wrap the div I suppose. Mine looks more like:

    <!-- google_ad_section_start -->
    <?php the_content(''); ?>
    <!-- google_ad_section_end -->

    Works well for me. I do that in my index.php and my single.php.

    I’m having the exact same problem and I think the OP is saying that all the google ads are physically working, however google isn’t picking up the content from the main page whereby it is working fine on all the other pages.

    I’ve tried putting comments with content into the index.php, page.php, single.php, header.php and footer.php and still the main page of adsense ads is showing ads about either blogs or wordpress, whereby all the other pages are showing ads related to the content.

    If you want to see what I mean. Check out my site at https://www.mysleepdisorders.info

    When you go to the page (you are in the main page), you’ll see the ads show about blogs or wordpress. Then if you go to one of the blog entries, or pages, suddenly all the ads change to sleep related ads.

    If anyone has any suggestions I’d really like to know too.

    Geoff

    never mind.. didn’t work.

    Ok.. I think I know what’s going on.

    If you have a domain go to a site, it seems to be different somehow than if you go to the same site but with the index.php at the end.

    Eg.

    Go to my site. https://www.mysleepdisorders.info

    Now look at the adsense ads. They are showing ads for wordpress and blogs and the like.

    Now go to the same site with the index.php. Eg. https://www.mysleepdisorders.info/index.php

    Now the ads are showing sleep related stuff.

    Can someone tell me what the difference is between not using the index.php and using it. Something else must be loading in it’s place first or something. I’m using a different theme btw.

    I want to be able to just use the domain to load the right part of the site because when people hit my site, they won’t be putting in index.php in the url.

    Any suggestions?

    BTW.. if we can get over this hurdle, then I think I have the full solution to the OP’s problem.

    I already answered the problem. It’s about telling google what to look at when determing contextual ads.

    carlocab123

    (@carlocab123)

    thanks handy solo!!! it worked but can you tell us how to put adsense only in the first post and it is wraped?

    truly yours
    carl ocab

    I’m having the same problem as gleff. On my main page, https://www.test.jabdeals.com, all of the adsense is related to blogs and rss feeds.

    All of my other pages in the blog show the properly related adsense, including /index.php, except for the main page. I’ve inserted the google targeting onto my index.php page, but I still am not getting the properly related adsense ads.

    What am I missing?

    Well, I am having a similar problem. I ran the latest WordPress 2.2.3 but I have noticed the problem for a while. If I go to the front the page of the blog by address (https://dptnt.com), I see public service ad on the banner and a blank skyscraper ad on the right. If I visit my site like https://dptnt.com/index.php, all the Ads show up perfectly. It appears that “https://dptnt.com/&#8221; is the same as https://dptnt.com/index.html. The question is: where is the index.html coming from? I don’t have that file in the directory at all.

    picmax, if I understand what you are saying correctly there is not an index.html file in your folder, but it appears in the URL address anyway.

    Either your .htaccess is rewriting the URL address or possibly permalink is doing a rewrite.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Adsense showing ads on blogs’ is closed to new replies.