Page 1 of 1

Adsense - HTML Nugget - Missing banners

Posted: Sat Nov 01, 2008 3:31 am
by poopingbag
On the root page I have three adsense banners. The horizontal one at the top works correctly. The two sidebar adsense units disappeared today.

If I navigate to a specific article - all three adsense banners display correctly.

All three banners worked flawlessly for about one month. The only recent changes I have made was adding and removing shoutbox because I was receiving spam on it.

I am hoping someone can help. I am a novice.

Thanks for this wonderful software!

http://poopingbag.com

Posted: Sat Nov 01, 2008 1:38 pm
by kleinerChemiker
Maybe Adsense has no ads to display.

Posted: Sat Nov 01, 2008 1:58 pm
by poopingbag
That did cross my mind. The reason I don't think that Adsense has no ads to display is because if I click on any other page other than the root, all three ads appear.

Its only on the root page that they do not appear.

Posted: Sat Nov 01, 2008 4:19 pm
by poopingbag
By The Way ...

Markup Transformations is Off. So this is also not the cause.

Posted: Sat Nov 01, 2008 5:33 pm
by poopingbag
I made one more discovery:

If I navigate to http://www.poopingbag.com
The sidebar ads are there.

If I navigate to http://poopingbag.com
The sidebar ads are NOT there.

Posted: Sat Nov 01, 2008 6:02 pm
by poopingbag
I tried removing both sidebar nuggets with the adsense code and added a new single sidebar nugget to the bottom. I navigated to http://poopingbag.com and ...

The single ad worked. I added a second sidebar ad and both disappeared again.

If I navigate to my page with the WWW suffix the ads always work fine. Without the WWW suffix it is not.

There is probably a simple fix here ... remember I am a novice so no jokes.

Smile

Posted: Sat Nov 01, 2008 6:37 pm
by kleinerChemiker
The Adsense code is in both html-codes. So the problem is google-related and not s9y-releated.

Posted: Sun Nov 02, 2008 2:47 am
by poopingbag
Thanks for your help. I'll follow up with the Adsense people.

Posted: Sun Nov 02, 2008 3:42 am
by Don Chambers
Dale - I'm impressed that you ask a question here on the forums, but have continued to try and solve the problem on your own while awaiting input from the community!! :wink:

Perrhaps the Adsense people can help you, but I have another suggestion for you.

You probably configured Adsense for your specific domain, including the www prefix.... right?

My suggestion would be to redirect all traffic so that it always points to the www address, which, btw, is a good thing to do for search engine optimization.

To accomplish this, you need 2 things:

First, make sure you have your site configured so that the base URL is http://www.poopingbag.com - and I am pretty sure you have already done that. But if you have not, log into the administration backend, and go to Administration -> Configuration -> Paths -> URL to blog and supply that address, inclusive of www, to that field.

Next, you need a simple text file named .htaccess (ie, DOThtaccess, no extension) in the root folder of where this serendipity installation resides. You will create this file using a simple text editor that does not insert formatting, such as font decorations. I only use Windoze so the only thing I can recommend is Notepad.

In this file named .htaccess, you need to redirect any traffic that came to your site without using the www prefix so that it DOES use the www prefix. This is what you need:

Code: Select all

# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Please feel free to let me know if you require assistance.

Posted: Sun Nov 02, 2008 4:42 am
by poopingbag
Thank you for your help.

I changed the URL to Blog setting from http://poopingbag.com to http://www.poopingbag.com

I noticed that a file on the root of the Serendipity install called .htaccess already existed so I appended the recommended code as follows:

# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

# BEGIN s9y
DirectoryIndex /index.php

<Files *.tpl.php>
deny from all
</Files>

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y

I hope I did that correctly.

After implementation I added an adsense sidebar ad in a nugget. There was only an empty space where the ad should have been positioned.

It is weird that the ads work on any page with exception to the root. I have sent an email to Adsense for assistance.

Posted: Sun Nov 02, 2008 5:52 am
by poopingbag
Interesting discovery.

Whenever the PSA Adsense ad "2008 Election Vote" appears ... all other ads on the same page will be nullified.

My assumption is that regular ad placements will occur once this PSA is complete.

Posted: Sun Nov 02, 2008 2:20 pm
by Don Chambers
I do not use Adsense, so I am not sure how it is configured regarding the actual domain it appears on, how/when to display, etc. The redirect code you added to .htaccess definitely works, so you might want to make sure that adsense is also set up to use the full www address as well. The good news is that it appears that only a single sidebar ad is not behaving itself... everything else appears to be working now. If you do not discover the remaining problem with that one ad on your own, hopefully the adsense support people will have the answer for you.

Posted: Sun Nov 02, 2008 4:04 pm
by poopingbag
I looked for a configuration option on my adsense administration page and didn't have any luck locating a setting for the base URL. I will send them another request for assistance and see if they can help correct the URL.

Thanks again for the tip. I am going to keep reading the forum to see if I can learn more regarding optimization of my site.

Posted: Sun Nov 16, 2008 7:11 am
by poopingbag
I previously added the code in the .htaccess:

# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

Unfortunately, my subdomains that I use no longer work. They re-direct to www.poopingbag.com.

Is there a way to exclude certain urls such as http://images.poopingbag.com ?

Thanks in advance

Posted: Sun Nov 16, 2008 2:34 pm
by Don Chambers
poopingbag wrote:I previously added the code in the .htaccess:

# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

Unfortunately, my subdomains that I use no longer work. They re-direct to www.poopingbag.com.

Is there a way to exclude certain urls such as http://images.poopingbag.com ?

Thanks in advance
I am no expert in these rewrite rules, but this *MIGHT* work:

Code: Select all

# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]

# Stop processing if "images" subdomain is requested
RewriteCond %{HTTP_HOST} ^images\.poopingbag.com
RewriteRule .* - [L] 

# Otherwise redirect
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Again, I'm no expert on this stuff and usually need a bit of advice for anything out of the ordinary, but I think that "stop processing" directive should work because it tells it to do nothing, and that it is the last rule in the list so it never gets to the redirect. Hopefully someone will correct me if I am wrong.