I have been working a bit lately with integrating Adsense into various sites that I maintain. Many of these sites are member only sites that require users to login to see content. Leveraging Adsense against this content has been troublesome until lately.
Google recently added the ability to setup website authentication for Adsense which will then allow the Google Crawler to crawl your private content for the purpose of serving Adsense content.
The process is essentially very straight forward and outlined by Google in the Adsense account info so I will forgo the simple details here. The main task was figuring out how to setup authentication information to sync with Drupal and allow Google to login. The Google interface asks for several key pieces of info that on first glance would seem easy but I found that after much searching, was not as easy to find. Hence this post. Hopefully it will help a few of you out.
Taking a quick look at the Drupal login form information shows that the following elements are submitted with the POST method to the url:
Authentication URL: http://www.yourdomain.com/?q=user
Authentication method: POST
Parameters are as follows: name & pass
Insert - Click the test button and once successful, save! Your done.
Note: If you do not want your content indexed in Google search results, it is a good idea to make sure you have the robots.txt module installed along with the XML Sitemap. Using the combination, you can properly set content for noindex, nocache but still allow Google to index for Adsense.
Let me know what you think of this and any suggestions you might have for making this method better.