I'm using google adsense on my site, and would like to give google permission to login to my site and search the pages that are behind the login so as to improve the ad relevance on my site. The google form is located at https://www.google.com/adsense/list-auth. It needs the following information:

  • Restricted Directory or URL
  • Authentication URL
  • Authentication method (post, get, plain http)
  • Parameters (attribute and value pairs for username and password

I'm not sure what these values are for drupal. If anyone could help out, that would be superb. Thanks.

Comments

tfaucher’s picture

What is the solution ?

please

Merlund’s picture

Hi,

I ran into this issue just now and finally discovered the values that worked for me (on a 5.3 site)...

Restricted Directory or URL: http://www.[yoursite.com]

Authentication URL: http://www.[yoursite.com]/user

Authentication method: POST

Parameters:
1st Attribute: name
1st Value: [yourUsername]

2nd Attribute: pass
2nd Value: [yourPassword]

3rd Attribute: form_id
3rd Value: user_login

4th Attribute: op
4th Value: Log in

Thanks to these articles for guidance:

http://www.tmgstudio.com/node/46

http://www.hackszine.com/blog/archive/2007/07/use_adsense_on_password_pr...

If the values I provided do not work for your site you should be able to determine the right values from your page source, within the code for the login box. Hope this helps!

~ Merlund

www.goggleson.com - the paintball community

trotsak’s picture

it works for Drupal 7 too

aangel’s picture

This likely doesn't work with the requirement of passing a form_build_id token. That requires getting the token by visiting the login form first. In that case, simply submit the form.