XF 2.3 Change in Google's Ad Policy and XenForo

This month has seen Google clarify to users of their Ads platform(s) that "ads are prohibited on screens where the primary focus is a private communication like direct messages, live chats, video-chats and private chatrooms".

Now with XenForo this seems to conflict with the way that 'Conversations' work, since that section shares the same core template from PAGE_CONTAINER where the main ads call code usually sits. So how do we stop ads (remove the code etc.) from showing under only 'Conversations'?
 
Google Ads & Adsense has a terms of service which states ads should not be displayed on private or non-content pages (this has been long standing). In order to comply you should not be displaying ads on any of these XenForo templates:

The following lists were good up until the release of XF 2.3 some templates may have changed.

Code:
account_alerts
account_avatar
account_banner
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
account_upgrades
account_upgrades_purchase
account_username
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
notice_dismiss
online_list
register_complete
register_confirm
register_connected_account
register_form
report_list
search_form
search_results
watched_forums_list
watched_threads_list
whats_new_profile_posts

If using XenForo Media Gallery:
Code:
xfmg_category_add
xfmg_media_edit_image
xfmg_watched_albums
xfmg_watched_categories
xfmg_watched_media

If using XenForo Resource Manager:
Code:
xfrm_category_add_resource
xfrm_resource_edit
xfrm_watched_categories
xfrm_watched_resources
xfrm_overview
xfrm_resource_view
xfrm_resource_updates
xfrm_resource_history
xfrm_thread_view_type_resource
 
Yes but how does that actually work to stop the ads, as it has no impact when the main ads call is in PAGE_CONTAINER as XenForo doesn't know which call is for ads in the first place. So should the call be in a different template for this to work?
 
What ad code are you putting where?

If you create advertisement positions within XenForo like is recommended it will stop those individual ad codes from running within the the templates you have listed to prevent ads.

1721304863773.webp


Autoads is will break Google's Advertising TOS on XenForo, for exactly the reason this thread covers. There is no way to stop ads running on pages they shouldn't be. No to mention Autoads often breaks page layouts on complicated site layouts like forums.
 
please consider using an addon like this to place the ad code in header using advertising section instead of through a global template (page_container) edit.


this should prevent autoads to appear throughout the forum. template feature of the advertising panel is excellent component for these cases. and yeah, this one does work on 2.3 though it's not officially marked as such by the developer. would be nice if @mazzly can verify and update it.
 
please consider using an addon like this to place the ad code in header using advertising section instead of through a global template (page_container) edit.


this should prevent autoads to appear throughout the forum. template feature of the advertising panel is excellent component for these cases. and yeah, this one does work on 2.3 though it's not officially marked as such by the developer. would be nice if @mazzly can verify and update it.
That looks good, thanks Chromaniac.
 
Google Ads & Adsense has a terms of service which states ads should not be displayed on private or non-content pages (this has been long standing). In order to comply you should not be displaying ads on any of these XenForo templates:

The following lists were good up until the release of XF 2.3 some templates may have changed.

Code:
account_alerts
account_avatar
account_banner
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
account_upgrades
account_upgrades_purchase
account_username
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
notice_dismiss
online_list
register_complete
register_confirm
register_connected_account
register_form
report_list
search_form
search_results
watched_forums_list
watched_threads_list
whats_new_profile_posts
Good list, I have a few additional from an Admin side that I include, and some that are plugin specific

Code:
account_alerts
account_avatar
account_banner
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
account_upgrades
account_upgrades_purchase
account_username
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_log
login_password_confirm
login_two_step
lost_password
lost_password_confirm
message_page
news_feed
notice_dismiss
online_list
register_complete
register_confirm
register_connected_account
register_form
report_list
report_view
search_form
search_results
spaminator_log
svConvEss_conversation_auto_response
svConvEss_conversation_labeled_list
svReportEss_report_queue
watched_forums_list
watched_threads_list
whats_new_profile_posts
 
The Ad position in HTML head plugin seemed to do the job nicely. Now I just need to figure out what templates of relevance may have changed or been removed between 2.2 and 2.3 in order to exclude them.
 
Back
Top Bottom