AdWords API AuthTokenException: Login failed

172 views
Skip to first unread message

SW

unread,
Apr 8, 2010, 5:19:26 PM4/8/10
to AdWords API Forum, mahesh...@structuredweb.com
Hi,

We have a process where we replicate google adwords account to
multiple client accounts(could be 20+) to copy over ads. We started
getting the login failed error recently.

We are using v200909 version with version 7 client library. Please
shed some light in resolving this or suggest a work around.

here is the error log:

Error occured in Run: com.google.api.adwords.lib.AuthTokenException:
Login failed ---> System.Net.WebException: The remote server returned
an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at com.google.api.adwords.lib.AuthToken.GetToken()

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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

AdWords API Advisor

unread,
Apr 9, 2010, 1:20:19 PM4/9/10
to AdWords API Forum
Hi,

This likely indicates that you are making too many requests to the
ClientLogin API in a short period of time. Are you reusing services
and/or authTokens in your application?

Best,
- Eric Koleda, AdWords API Team

On Apr 8, 5:19 pm, SW <GA...@structuredweb.com> wrote:
> Hi,
>
> We have a process where we replicate google adwords account to
> multiple client accounts(could be 20+) to copy over ads.  We started
> getting the login failed error recently.
>
> We are using v200909 version with version 7 client library.  Please
> shed some light in resolving this or suggest a work around.
>
> here is the error log:
>
> Error occured in Run: com.google.api.adwords.lib.AuthTokenException:
> Login failed ---> System.Net.WebException: The remote server returned
> an error: (403) Forbidden.
>     at System.Net.HttpWebRequest.GetResponse()
>     at com.google.api.adwords.lib.AuthToken.GetToken()
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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

SW

unread,
Apr 9, 2010, 5:17:32 PM4/9/10
to AdWords API Forum
Reusing authentication seemed to have helped. Surprisingly,
documentation doesn't state this.

Thank you Eric

On Apr 9, 1:20 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

Joshua J. Kugler

unread,
Apr 9, 2010, 5:21:36 PM4/9/10
to adwor...@googlegroups.com, GA...@structuredweb.com
On Friday 09 April 2010, SW elucidated thus:

> Reusing authentication seemed to have helped. Surprisingly,
> documentation doesn't state this.

From: http://code.google.com/apis/adwords/v2009/docs/headers.html

"An authentication token is valid for about a week after you acquire it;
when it expires, use ClientLogin to retrieve a new one."

Which implies you can cache it and reuse it.

j

Reply all
Reply to author
Forward
0 new messages