Google Adsense, site authentication and Drupal

Submitted by programmer on Tue, 08/28/2007 - 11:54.

I'm trying to use adsense, but my problem is, that my main (90%) content is password protected. This way, adsense only uses the url as info to choose wich ad to display. this way i get many XML ads because of the url: site.com/node/X :)

Google Adsense provides a way to solve this: site authentication. If i provide them a user/pass, then they log in and index my sub pages. so i'm trying to do this. Info i passed on adsense's site authentication page is:
Restricted Directory or URL: www.domain.com (my domain of course)
Authentication URL: http://www.domain.hu/frontpage?destination=frontpage

Authentication method: POST
Parameters:
name = username
pass = pass
form_id = user_login_block

That's it. When i click on Test My Authentication URL the popup window shows the frontpage with the logon block, but according to my log, the adsense account logged in.

Anyone tried to use this? Any advice?

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options