Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Mar 2014, 19:23
matrog matrog is offline
 
Join Date: Jan 2006
adsense hide on error pages

Hi All, google adsense is banning my account since they don't want to display ads on error or empty pages, how can I prevent this using come conditional statement in my pages?

thanks,
matteo
Reply With Quote
  #2  
Old 12 Mar 2014, 21:14
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Hopefully you can get this fixed quickly. A lot of people miss the fine print and get banned this way.

Per Google:
Google ads, search boxes or search results may not be:
  • Integrated into a software application (does not apply to AdMob) of any kind, including toolbars.
  • Displayed in pop-ups or pop-unders.
  • Placed in emails, email programs, including webmail, or on pages where dynamic content (such as live chat, instant messaging, or auto-refreshing comments) is the primary focus. (Does not apply to AdMob.)
  • Placed in emails, email programs, or chat programs. (Does not apply to AdMob.)
  • Obscured by elements on a page.
  • Placed on any non-content-based page. (Does not apply to AdSense for search, mobile AdSense for search, or AdMob.)
  • Placed on pages published specifically for the purpose of showing ads.
  • Placed on pages whose content or URL could confuse users into thinking it is associated with Google due to the misuse of logos, trademarks or other brand features.
  • Placed on, within or alongside other Google products or services in a manner that violates the policies of that product or service.
The code below will keep your ads off of vBulletin "non-content based pages" including error pages, starting a new thread page, registration pages, site rules, etc. and keep you in compliance with Google Adsense rules.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

P.S. The "error" conditional above may not be the same for everyone depending on if you use the standard vB error pages or a mod to display error pages. To verify, check the source code of the error pages displayed by your particular installation and adjust the conditional as necessary to cover your script.

If you can't figure it out yourself, just post or pm a link to your site.

Last edited by bzcomputers; 12 Mar 2014 at 21:24.
Reply With Quote
  #3  
Old 13 Mar 2014, 00:07
MYU MYU is offline
 
Join Date: Dec 2013
Hello, I'm having the same problem. I had a news section which was breaking Adsense rules, I've deleted the section and it comes up with an error page now.

http://www.wearetherangersboys.com/f...sex-slave-case

I used the code above and the banner don't display on the page to register, however it still shows on the link above.

I'm using a test style to test it and I don't want the ad on some sections of the forums.

If you go into the default style the ads will not show on this error page. I have set that so it only shows on the forums I want, it will not display on global which is what I want. It's also set as non content.

I want my ads global, not to show on a few sections or non content pages if anyone can help?
Reply With Quote
  #4  
Old 13 Mar 2014, 07:20
matrog matrog is offline
 
Join Date: Jan 2006
thanks, your code works for the majority of non content pages except this one for example

http://www.digital-forum.it/showthre...agli-usa/page5

thanks,
Matteo
Reply With Quote
  #5  
Old 13 Mar 2014, 08:37
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Originally Posted by MYU View Post
... I've deleted the section and it comes up with an error page now.

http://www.wearetherangersboys.com/f...sex-slave-case
Originally Posted by matrog View Post
thanks, your code works for the majority of non content pages except this one for example

http://www.digital-forum.it/showthre...agli-usa/page5

thanks,
Matteo
Both of these links are threads that use the script 'showthread'. If you put that in the above code it will stop ads from displaying on all your forum threads. You really need to just permanently delete reference to those old threads/links.
Reply With Quote
  #6  
Old 13 Mar 2014, 13:11
MYU MYU is offline
 
Join Date: Dec 2013
Originally Posted by bzcomputers View Post
Both of these links are threads that use the script 'showthread'. If you put that in the above code it will stop ads from displaying on all your forum threads. You really need to just permanently delete reference to those old threads/links.
Thank you, problem is this link is from Google search.

My news section had over 200,000 threads which is all deleted now. These links are found on Google search and displays this page.

Surely the forum will know it's a non content page as it's displayed on the screen?
Reply With Quote
  #7  
Old 13 Mar 2014, 20:55
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Originally Posted by MYU View Post
Thank you, problem is this link is from Google search.

My news section had over 200,000 threads which is all deleted now. These links are found on Google search and displays this page.

Surely the forum will know it's a non content page as it's displayed on the screen?
It appears you must be using either a mod or individual rewrite rules on your threads. The page that is resulting from the removed link you posted should be giving an error so Google knows to remove it (eventually), check your mod settings or your rewrite rules.
Reply With Quote
  #8  
Old 13 Mar 2014, 21:04
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Adsense always disabled my account no matter how many i added so i found a way around it. Add it to youtube first leave it running for a few months then add it to your forums have had it running now a few years and so far so good
Reply With Quote
  #9  
Old 14 Mar 2014, 00:02
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
I currently use a combination of these two mods to get the results I needed and have never had any warnings/issues with Adsense:

1) DBSEO - previously used vbSEO
2) vb4 Error Pages

When setup correctly all removed deleted threads/urls which contain no content give a 404 Custom Error Page which does not display any Adsense ads.

After awhile Google will remove the urls leading to the 404 Error Pages from their search engines. In the mean time you will be complying with Google's Adsense rules by just keeping ads off of the non-content 404 Custom Error Pages by using the code I posted above.
Reply With Quote
  #10  
Old 14 Mar 2014, 21:28
MYU MYU is offline
 
Join Date: Dec 2013
Originally Posted by bzcomputers View Post
I currently use a combination of these two mods to get the results I needed and have never had any warnings/issues with Adsense:

1) DBSEO - previously used vbSEO
2) vb4 Error Pages

When setup correctly all removed deleted threads/urls which contain no content give a 404 Custom Error Page which does not display any Adsense ads.

After awhile Google will remove the urls leading to the 404 Error Pages from their search engines. In the mean time you will be complying with Google's Adsense rules by just keeping ads off of the non-content 404 Custom Error Pages by using the code I posted above.
I will try this and thank you for your help.
Reply With Quote
  #11  
Old 19 Jun 2015, 08:33
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Real name: Mike McKoy
Does anyone know how to block ads from appearing on specific threads?
__________________
Casting Calls for Models, Actors, And Other Talent
http://MyModelTalk.com
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:16.

Layout Options | Width: Wide Color: