Forum Moderators: martinibuster
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]
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.
<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 -->
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?
==========================
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.