Reduce likelihood of sites being banned for serving ads on inaccessible and no content pages

bzcomputers

Well-known member
After reading a recent post about an individual getting warnings from their advertising provider (Adsense) about their site displaying ads on inaccessible pages (inaccessible to the advertiser). Then said advertiser no longer serving ads to the entire site (hopefully not a permanent ban).

XenForo currently installs with a short list of "Prevent ads showing in these templates". The option is great but the current list is quite lacking and as is can cause sites to be penalized or even banned by advertising companies. I figured now was a good time to post this info and a more comprehensive template list. Hoping that XenForo includes the expanded list in future releases.

Most advertising companies require a page to be accessible, either publicly accessible or you need to provide login access to the advertiser. This is to ensure the advertiser can see all content/pages on which their ads are being served.

There are basically 2 scenario setups that advertising comes into play when setting it up on a XenForo site:
  1. You must login in order to view at least some forum(s)
  2. Your forums are all publicly view-able
If your site is like #1 then you'll need to create a login account for your advertiser(s) in order to allow them to view the forum content on your site.

If your site is #1 or #2 the following pertains to you. You should not be displaying ads on pages that have no content or are hidden behind a member specific login, this is pretty standard requirements for all advertising entities online. "No content" means pages like login pages, error pages, registration pages, etc within XenForo. "Member specific login" means even if you give the advertiser login access they still will not be able to see content because that content is specific to an individual login account. This would include conversation pages, watched content lists, add and edit threads/posts pages, account pages, etc. within XenForo.

What this means is the list of templates EVERYONE should not display ads on is much longer than currently provided in a stock XenForo install. I have attempted to come up with a pretty comprehensive list (it's the one I currently use). I can't say it covers everything but it will greatly reduce the likelihood of you breaking your advertisers rules for ad placement.

For a stock XenForo 2.x install you should "Prevent ads showing in these templates:

Code:
account_alerts
account_avatar
account_bookmarks
account_connected
account_connected_associate
account_details
account_email
account_following
account_ignored
account_preferences
account_privacy
account_reactions
account_security
account_signature
approval_queue
contact_form
conversation_add
conversation_edit
conversation_invite
conversation_leave
conversation_list
conversation_reply
conversation_view
error
find_threads_list
forum_post_thread
help_index
help_page
login
login_password_confirm
login_two_step
lost_password
lost_password_confirm
message_page
news_feed
register_complete
register_confirm
register_connected_account
register_form
report_list
watched_forums_list
watched_threads_list

If you have XenForo Resource Manager installed add these:
Code:
xfrm_category_add_resource
xfrm_resource_edit
xfrm_watched_categories
xfrm_watched_resources

If you have XenForo Media Gallery installed add these:
Code:
xfmg_category_add
xfmg_media_edit_image
xfmg_watched_albums
xfmg_watched_categories
xfmg_watched_media
 
Upvote 5

AndrewSimm

Well-known member
This is a good list.

I also think XF should give addon the options to specify whether templates should show ads or not.
 

ShikiSuen

Well-known member
One can enumerate all data template names from the master template, then choose what to disable / enable in the advertising settings.
 
Top