Hi,

The error is being thrown by the ClientLogin API because your email
address has "++error_code" in it.  Emulating errors isn't supported in
the v200909 sandbox and this should be removed.

Best,
- Eric Koleda, AdWords API Team

On Apr 23, 2:53 pm, iosif feygin <iosif.fey...@gmail.com> wrote:
> I have this error when try to login to sandbox:
> Could not get ClientLogin token for user: Auth token could not be
> retrieved because of error: BadAuthentication
>
> I can not understand why my program has to connect to sandbox and not
> production service. Do I have to  specify ALT URL? How can I make it?
>
> This a fragment from a program. Please Help.
>
>         String email = "*...@gmail.com++error_code";
>         String password = "******";
>         String clientEmail = "";
>         String useragent = "INSERT_COMPANY_NAME: AdWords API Java
> Sample Code";
>         String developerToken = "*...@gmail.com++usd";
>         String applicationToken = "INSERT_APPLICATION_TOKEN_HERE";
>         String namespace = "https://adwords.google.com/api/adwords/
> v2009";
>
>         String clientId ="cientID";
>
>         try {
>
>    // Log SOAP XML request and response.
>      AdWordsServiceLogger.log();
>
>      AdWordsUser user = new AdWordsUser(email, password, useragent,
> developerToken, applicationToken);
>
>      // Get the TargetingIdeaService.
>      TargetingIdeaServiceInterface targetingIdeaService;
>
>      targetingIdeaService =
>
> user.getService(AdWordsService.V200909.TARGETING_IDEA_SERVICE);
>
>     // Create seed keyword.
>      Keyword keyword = new Keyword();
>      keyword.setText("mars cruise");
>      keyword.setMatchType(KeywordMatchType.BROAD);
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Have you migrated to v200909 yet?
> The v13 sunset is on April 22, 2010.
>
> Also find us on our blog and discussion 
> group:http://adwordsapi.blogspot.comhttp://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 adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/adwords-api?hl=en

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to