Hi Nick, The most likely reason for this error is that you are hitting the ClientLogin endpoint very frequently. AuthTokens have long expiration periods, so the ClientLogin isn't designed to be hit very frequently. If you do, then the server will eventually throw you a Captcha error, and you have to either unlock the captcha or wait for a while for the error to go away. The workaround is to cache the authTokens at your end and reuse them as far as possible.
See this blog post for more details around the best practices for handling authTokens: http://adwordsapi.blogspot.com/2010/07/discover-v2009-working-with-authtokens.html. Cheers, Anash P. Oommen, AdWords API Advisor. On Feb 8, 6:34 am, Nick Hibberd <[email protected]> wrote: > Sorry, the above error was caused by an error in my code, but the > following error I get frequently and seems to be down to my login > details, which are correct and which work again when I run the code > again a few minutes later. > > Any ideas? > > Cheers > > Nick > > AdWords::Error::AuthError: Login failed for email > [email protected]: Forbidden (code 403) > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r/ > authtoken.rb:71:in `get_token' > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r/ > credentials.rb:300:in `generate_auth_token' > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r/ > credentials.rb:274:in `auth_token' > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r/ > credentials.rb:53:in `on_simple_outbound' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/header/ > simplehandler.rb:32:in `on_outbound' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/header/handler.rb: > 41:in `on_outbound_headeritem' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/header/ > handlerset.rb:43:in `on_outbound' > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r.rb:285:in > `collect' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/xsd/namedelements.rb: > 58:in `each' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/xsd/namedelements.rb: > 57:in `each' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/header/ > handlerset.rb:42:in `collect' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/header/ > handlerset.rb:42:in `on_outbound' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:240:in > `create_request_header' > from /var/lib/gems/1.8/gems/adwords4r-19.2.1/lib/adwords4r/ > soap4rpatches.rb:108:in `call' > from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb: > 181:in `call' > from (eval):6:in `mutate' > > On Feb 7, 5:34 pm, Nick Hibberd <[email protected]> wrote: > > > > > > > > > Hi, > > > When running a bulk update on a number of adgroups I frequently come > > across the following error, which will prevent me from running the > > update for a minute or two, after which I can run it again without > > changing anything > > > AdWords::Error::GoogleInternalError: mutate Call Failed: > > #<SOAP::SOAPElement:0xb58e2488> > > > Am I doing something wrong, or is there a way to avoid this? > > > Cheers > > > Nick -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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
