AuthTocken Login failed

134 views
Skip to first unread message

ewittas

unread,
Jul 4, 2011, 2:11:50 AM7/4/11
to AdWords API Forum
Hello guys,

From last two days I am trying to resolve a single error "AuthTocken
Login failed" but not getting any solution or hint for this.

headers.Add("email", "XXX");
headers.Add("password", "XXX");
headers.Add("useragent", "XX");
headers.Add("developerToken", "XXX");
AdWordsUser user = new AdWordsUser(headers);

I wants to make call campaign service for adwords account. Can any one
give me solution? orElse my click will going to kill me :) ;)

Anash P. Oommen

unread,
Jul 5, 2011, 2:56:11 AM7/5/11
to adwor...@googlegroups.com
Hi,

Here are a few suggestions to troubleshoot your issues.

1. If you are using v12.2.0, try capitalizing the first letter of the headers. (Email, Password, DeveloperToken, etc.)
2. Catch the exception, it should be an AuthTokenException object. Inspect its properties and see what the actual cause of failure is. The Errorcode field contains more information on why the login is failing. See http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/src/Common/Lib/AuthTokenException.cs#93 for details. Detailed explanation for each failed results are available here: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Errors
3. Download Fiddler2 from http://www.fiddler2.com/fiddler2/. Start fiddler, enable it to capture https traffic. Set the client library's proxy in App.config/Web.config to http://localhost:8888 and run your code. Fiddler should capture the raw traffic and it should give some hint on why things are failing (bad password, wrong fieldname, etc.)
4. If everything else fails, mail the raw logs to me (anash.p...@google.com) and ping this thread. I'll take a look at the logs. Do not post the logs online, it may contain sensitive information.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Reply all
Reply to author
Forward
0 new messages