The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Hopefully you can get this fixed quickly. A lot of people miss the fine print and get banned this way.
Per Google: Quote:
Code:
<vb:if condition="!in_array(THIS_SCRIPT, array('error', 'misc', 'newthread', 'private', 'register'))"> YOUR AD CODE HERE </vb:if> If you can't figure it out yourself, just post or pm a link to your site. |
#3
|
|||
|
|||
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? |
#4
|
|||
|
|||
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 |
#5
|
||||
|
||||
Quote:
Quote:
|
#6
|
|||
|
|||
Quote:
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? |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
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
|
#9
|
||||
|
||||
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. |
#10
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|