Login with this username/password failed - for newly created googlemail account (sandbox)

105 views
Skip to first unread message

BrianMcC

unread,
May 6, 2010, 9:18:44 AM5/6/10
to AdWords API Forum
Hello,

I believe (after much digging around), that in order to create the 5
sandbox clients (client_n+login_id), a call to getClientAccounts() on
the account service must be made. I make the call with the following
code:-

Dictionary<string, string> headers = new
Dictionary<string, string>();

//HEADERS NOT SHOWN HERE BUT SET UP EXACTLY AS PER
DOCUMENTATION.

AdWordsUser user = new AdWordsUser(headers);
user.UseSandbox();

AccountService accountService =
(AccountService)user.GetService(AdWordsService.v13.AccountService);

string[] cacc = accountService.getClientAccounts();

I get an exception "Login with this username/password failed". I can
log into google mail with the username/password. As a test I tried
changing the case of the password and then got an authentication
error, so it seems that the username/password is authenticating before
the call to getClientAccounts.

Help with this would be much appreciated, thank you.

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

BrianMcC

unread,
May 6, 2010, 11:55:53 AM5/6/10
to AdWords API Forum
Well, well, well...

The email account that I created in order to test in the sandbox is of
the form bla...@googlemail.com, and exhibits the behaviour, as
described by me above. On a whim, I tried changing the "email" header
to bla...@gmail.com, and guess what, it works!!! So, in summary, the
user authenticates with "bla...@googlemail.com" but the call to the
service method fails with"Login with this username/password failed".
Changing "googlemail" to "gmail" works. Such is life.

On May 6, 2:18 pm, BrianMcC <brianm.icross...@googlemail.com> wrote:
> Hello,
>
> I believe (after much digging around), that in order to create the 5
> sandbox clients (client_n+login_id), a call to getClientAccounts() on
> the account service must be made. I make the call with the following
> code:-
>
>             Dictionary<string, string> headers = new
> Dictionary<string, string>();
>
>             //HEADERS NOT SHOWN HERE BUT SET UP EXACTLY AS PER
> DOCUMENTATION.
>
>             AdWordsUser user = new AdWordsUser(headers);
>             user.UseSandbox();
>
>             AccountService accountService =
> (AccountService)user.GetService(AdWordsService.v13.AccountService);
>
>             string[] cacc = accountService.getClientAccounts();
>
> I get an exception "Login with this username/password failed". I can
> log into google mail with the username/password. As a test I tried
> changing the case of the password and then got an authentication
> error, so it seems that the username/password is authenticating before
> the call to getClientAccounts.
>
> Help with this would be much appreciated, thank you.
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:http://adwordsapi.blogspot.comhttp://groups.google.com/group/adwords-api
Reply all
Reply to author
Forward
0 new messages