Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense causing my pages not to show

         

denisl

2:01 pm on Sep 4, 2009 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have pages that have had adsense on them for sometime.

To make it easier to manage the adds, I placed the add code on its own in a file called google-adds.php.

I then use a php include to include this at the appropriate point in a page.

After moving the site to a new host 10 days ago (not necessarily any connection), I have found a number of cases where my page does not show in the browser, or the page has stopped at the point where the add should be. Removing the include results in a normal page minus the add.

I have tried generating new adsense code to check that was not the cause of the problem.

Anyone found anything similar or have any ideas.

The adds are not causing a 404, simply stopping the php from running (I think).

skweb

2:44 pm on Sep 4, 2009 (gmt 0)

10+ Year Member



It is not AdSense that maybe the problem but the settings on your server that may not be allowing php to run. Have you spoken to the new hosting company?

skweb

2:47 pm on Sep 4, 2009 (gmt 0)

10+ Year Member



It is not AdSense that maybe the problem but the settings on your server that may not be allowing php to run. Have you spoken to the new hosting company?

doubtmaster

2:53 pm on Sep 7, 2009 (gmt 0)

10+ Year Member



I have faced problem when site would not load on pages where google adsense is present. This problem was persistent on FF but not on IE.

Try loading your page of google chrome or IE. If it is loading, then the problem is with google. Generally it gets stuck with google-analytics not loading. When the ads are served from double click, I found there is no problem. Also the problem is not there always, but at some time of the day on some days.

Some of the problem got solved when I found that the google analytics code I inserted was wrong. Check the script as it has 2 parts. I had actually removed the top <javascript> and bottom </javascript> but missed out the other <javascript> and </javascript> in between before putting into a separate file. This had actually caused the pages not to load properly and also analytics were not showing.

If the page is fine with IE then mostly it is not your site problem.

surfer67

3:27 pm on Sep 7, 2009 (gmt 0)

10+ Year Member



Are the ads showing? If the page content is not showing but the ads are, you'll make a ton of money because the ads is all the visitors will see. LOL

denisl

4:49 pm on Sep 7, 2009 (gmt 0)

10+ Year Member Top Contributors Of The Month



The pages would load upto the point where the php script includes the file that contains the adsense code.
As I could not find the reason for it quickly, I have now stopped using the include, placing the adsense code directly in the page. I do however include it with an IF statement so it will only show the adds when a variable in a template is set to true. This gives me the control I had before, being able to "switch off" the adds in any partuclar directory if needed.

eeek

6:33 am on Sep 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I do however include it with an IF statement so it will only show the adds when a variable in a template is set to true. This gives me the control I had before, being able to "switch off" the adds in any partuclar directory if needed.

It's sounding like you have a bug in your php code.