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.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