• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Letting Google AdSense index your private boards

Jesepi

Well-known member
#1
I would like to have more relevant ads in the private areas of my site that google can not index. AdSense has a tool where you can give login credentials for the adsense bot to enter your private forums and crawl content for more relevant ads, while not having them show up on search results.

Does anyone know the correct values to enter into this form? The plaintext password for a user does not work.
 

Attachments

Jake Bunce

XenForo moderator
Staff member
#2
Cool feature.

Restricted Directory or URL: the URL of your private forum

Login URL: http://www.yoursite.com/forum/index.php?login/login

Login method: POST

Parameters:

login = username here
password = password here
redirect = http://www.yoursite.com/forum/index.php

The "redirect" parameter might not be required, but in my testing with a regular browser I encountered redirect problems when submitting the form without a redirect specified.
 

Jesepi

Well-known member
#3
The redirect isn't working, as the : character isn't allowed in that field. I'll leave it off for now and see if it works.
 

Euroman

Active member
#5
I can't get Adsense to show on my forum - I now have a default style and still no show. The code works on wordpress fine. But here it's just a white space.

Code:
<xen:hook name="ad_sidebar_top" />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2340283517533441";
/* mlm-forums */
google_ad_slot = "8848259061";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
What can I do to fix this?
 

DRE

Well-known member
#10
Your ads must not be on the same page as adult content. Use a conditional to keep the ads from showing on that private subforum.