Forum Moderators: martinibuster

Message Too Old, No Replies

Strange problem with Adsense not showing on Wordpress!

         

benji99

2:08 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



I have a very strange issue ...

I've manually placed some ads on my wordpress blog (rather then using a plugin). There are a lot of posts which display no ads. Thinking this is due to content I ignored this for a while until I noticed this ...

When I view a post like this one ... http://example.com/blog/?p=114 it does not show any ads ... however, the same post does show ads if you ad the following to the url &preview=true (this is a wordpress function) ... like this http://example.com/blog/?p=114&preview=true

I noticed this when I preview posts (drafts) and it showed ads then after being published, the ads were no longer displayed. I can do this with any posts or pages I've seen thus far, however, some do show ads without the addition to the url.

Any clue why this is happening? I sure don't!

[edited by: jatar_k at 2:36 pm (utc) on Sep. 12, 2007]
[edit reason] no urls thanks [/edit]

Go60Guy

2:18 pm on Sep 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld. One of the restrictions here in the TOS is that we do not include links to our sites or promote. I know you're not doing that, and have a genuine problem with WordPress, which is best demonstrated with a link to the site. Usually, we handle those things with private messages.

That said, you might want to experiment by placing the adsense code within div tags and see if that does it. Sometimes, the WP theme does not accomodate AdSense we've found.

benji99

3:56 pm on Sep 12, 2007 (gmt 0)

10+ Year Member



Thanks! I apologize for not adhering to your TOS. I've tried placing div codes around the adsense code without success. The code is already within div codes as it is.

Thanks for the idea. I appreciate it. I will keep playing with it!

Go60Guy

6:03 pm on Sep 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Again, I don't know if this will help at all. Below is an excerpt from sidebar code taken from an AdSense ready WP theme. Please note how all div tags are properly closed. When I've had this problem in the past, I've found that I failed to do this.

<div class="right-sidebar">

<!-- Begin - Google Ads -->
<div class="right-widget-title">More About #*$!#*$!#*$!</div>
<div class="right-widget">
<script type="text/javascript"><!--
google_ad_client = "<?php tiga_getValue('AdsenseID');?>";
google_alternate_color = "FFFFFF";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "6591F2";
google_color_text = "1E72A7";
google_color_url = "6591F2";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End - Google Ads -->

<!-- Begin - Meta -->
<?php if ( is_home() ¦¦ is_page() ) {?>
<div class="right-widget-title"><?php _te('Meta');?></div>
<div class="right-widget">
<ul>
<?php wp_register();?>
<li><?php wp_loginout();?></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform." rel="nofollow">WordPress</a></li>
<?php wp_meta();?>
</ul>
</div> <!-- right-widget -->
<?php }?>
<!-- End - Meta -->

</div> <!-- right-sidebar -->

rashe18

8:03 pm on Sep 13, 2007 (gmt 0)

10+ Year Member



I also faced this problem ,

Some tips:

Maybe google is not reaching some posts in your blog?

Do you have a sitemap?

Do you have robots.txt file?

Tried to change the theme and check if ads shown?

Your blog's language is not english?

Maybe not enough content in the post?

Try to browse these posts with FF/IE.

Maybe exceeded the permitted ads units in the same page?

Do you have many pictures in these problematic posts?

iridiax

9:04 pm on Sep 13, 2007 (gmt 0)

10+ Year Member



For Adsense with each post, add the Adsense javascript to single.php and make sure that you keep it outside of the Wordpress loop. These ads will only show on the individual post pages and not on the main page. Also, the Adsense javascript won't work if you paste it directly into the edit field on the "Create New Post" page.

rashe18

10:50 pm on Sep 13, 2007 (gmt 0)

10+ Year Member



Maybe google manually filter some pages from showing ads?

Go60Guy

11:00 pm on Sep 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



add the Adsense javascript to single.php

As I recall, the OP was trying to display AdSense in a sidebar. Also, I don't think Google filters AdSense out of certain WP themes. If there's a problem, I think it centers on the particular theme or getting the coding right.

rashe18

12:59 am on Sep 14, 2007 (gmt 0)

10+ Year Member



Quoted from google adsnese site:

==========================
Sensitive content filters.
At times, certain ads may be inappropriate for some pages. For example, Google automatically filters out ads that would be inappropriate on a news page about a catastrophic event.
==========================

It means there is an initiated method to block ads from some pages.

My blog has some hundreds of posts , i can't see ads on some pages which contains stuff related to usa soldiers in iraq. (photos/video ....)

I don't think it is a coding problem. Google is blocking these urls!

http://www.example.com/?p=788 >>>> ads never shown!

http://www.example.com/?p=788* (just add *) >>>> ads will be shown.