Hello,

I'm using the client libraries ( java ) to get the services and I'm
experiencing the same error in the production environment.  Here is a
snippet of code where I am seeing this most often.  I contruct and
AdWordsUser object and then make a call to get the service that I
need>
 adwordsUser.getService
(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);

There are cases where more than one thread is performing this call. I
think this is when I am seeing this error most often.  I am not sure
how to  re use the authTokens using this pattern.     Any suggestions
would be appreciated.

Thank you,
Ursula

On Nov 18 2009, 8:49 am, AdWords API Advisor
<[email protected]> wrote:
> Hi Sreenu,
>
> The main cause of account locking is excessive logins.  The v2009 API
> uses authTokens, which are generated by theClientLoginservice
> (http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
> ).  If you request authTokens too frequently your account may be
> locked.  AuthTokens have a fairly long life span (a couple of days at
> least) so you can and should reuse them between requests.  If your
> application is generating a new authToken for every request thatcould
> be the cause of the problem.
>
> Best,
> - Eric
>
> On Nov 18, 12:01 am, sreenu <[email protected]> wrote:
>
> > Hi,
> > I have tried this and worked fine for some time. Again I am getting
> > same exception.Couldyou please tell me the cases which adwords can
> > lock accounts.
>
> > On Nov 17, 2:14 am, AdWords API Advisor <[email protected]>
> > wrote:
>
> > > Hi Sreenu,
>
> > > Have you tried using the account unlock CAPTCHA?
>
> > >  https://www.google.com/accounts/displayunlockcaptcha
>
> > > Best,
> > > - Eric
>
> > > On Nov 16, 6:53 am, sreenu <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I am getting "ServiceException:javax.xml.rpc.ServiceException:Could
> > > >notgetClientLogintokenforuser." exception for all  services
> > > > (campaign, adgroup, ad, keyword).
>
> > > > I am sure , I am passing correctusername and password.
>
> > > > I am using MCC account and I have hundred client accounts.
>
> > > > Here I am giving you the piece of code.
>
> > > > AdWordsUseruser= null;
> > > > adWordsUser = new AdWordsUser(propertyfile);
> > > > adWordsUser  = adWordsUser .generateClientAdWordsUser
> > > > (clientCustomerId); // clientCustomer id is the email address.
>
> > > > CampaignServiceInterface campaignService = null;
>
> > > >         try {
> > > >             campaignService =user.getService
> > > > (AdWordsService.V200906.CAMPAIGN_SERVICE);
> > > >         } catch (ServiceException e) {
> > > >             logger.error("getCampaignService: Email:["+user.getEmail()
> > > > +"]ClientEmail:["+user.getClientEmail()+"]ClientCustomerId:
> > > > ["+user.getClientCustomerId()+"]DeveloperToken:
> > > > ["+user.getDeveloperToken()+"]applicationToken:
> > > > ["+user.getApplicationToken()+"]Password:["+user.getPassword()+"]
> > > > ServiceException:"+ e);
> > > >             e.printStackTrace();
> > > >         }
>
> > > > In failure case I am writing theuserinformation.
>
> > > > Please advice.

--

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


Reply via email to