AdWords API Re: Authentication token and requests per second

2010-02-06 Thread Ales Sturala
Hi Jakob,
I might help you with this one. The problem with 403 Forbidden is
caused by Google servers that filter DOS and that take care of any
communication to Google (not just AdWords api). The exact number of
allowed requests is 180 per 1 minute per IP.

Ales

On Feb 5, 10:12 pm, "Peer Jakobsen (AdWords API Guru)"
 wrote:
> Hi Eric, Nothize,
>
> Thanks for your feedback.I will implement handling expired tokens in
> the proxy layer.
> I am still a bit worried about having a large number of processes
> running in parallel sending requests to the API, all getting a token
> expired exception at the same time and all asking for a fresh token at
> the same time. Having 50 processes ask for a new token at the same
> time could lead to a temporary permission denied.
>
> Cheers

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



AdWords API Re: Authentication token and requests per second

2010-02-05 Thread Peer Jakobsen (AdWords API Guru)
Hi Eric, Nothize,

Thanks for your feedback.I will implement handling expired tokens in
the proxy layer.
I am still a bit worried about having a large number of processes
running in parallel sending requests to the API, all getting a token
expired exception at the same time and all asking for a fresh token at
the same time. Having 50 processes ask for a new token at the same
time could lead to a temporary permission denied.

Cheers

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



AdWords API Re: Authentication token and requests per second

2010-02-05 Thread AdWords API Advisor
Hi Peer,

In regards to the error, I just ran some tests and
GOOGLE_ACCOUNT_COOKIE_INVALID is the reason you would get for an
expired token as well.  Also, the token was invalidated immediately
after changing the password.

Best,
- Eric

On Feb 5, 11:25 am, AdWords API Advisor 
wrote:
> Hi Peer,
>
> To expand on nothize's points, the password change is the only way to
> manually expire an authToken, but I'm not sure that you would really
> need to worry about expiring them.  While I can understand the idea of
> proactively regenerating your authTokens before they expire, there is
> no harm is leaving the old token un-expired until they do so
> naturally.  From what I know the limitation is on how often you
> request tokens, not how many unexpired ones there are in the wild.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 5, 5:34 am, nothize  wrote:
>
>
>
> > >Is there anyway to force a token to expire?
>
> > Not to my knowledge, should be a good alternative but that might not
> > be so viable because even a password change needs about 10 minutes to
> > expire the token. The Auth Token is meant to be used by all Google
> > services, thus there may be issues with real-time expiration in such a
> > distributed environment.
>
> > >GOOGLE_ACCOUNT_COOKIE_INVALID
> > >It that the error reason that should trigger getting a new fresh
> > >token?
>
> > From my own experience without reading any documents, yes.
>
> > There're some ideas in the thread below, see if it 
> > fits:http://groups.google.com/group/adwords-api/browse_thread/thread/ed642...
>
> > Any proxy layer will surely be working too. Just implement your own
> > [request proxy token, try, fail->[request new proxy token, retry],
> > success->[done]] mechanism.
>
> > On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
>
> >  wrote:
> > > One more question. What error reason can I expect when a token
> > > expires. I can see that if I put some random value I get this:
> > > GOOGLE_ACCOUNT_COOKIE_INVALID
>
> > > It that the error reason that should trigger getting a new fresh
> > > token?
>
> > > Thanks

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



AdWords API Re: Authentication token and requests per second

2010-02-05 Thread AdWords API Advisor
Hi Peer,

To expand on nothize's points, the password change is the only way to
manually expire an authToken, but I'm not sure that you would really
need to worry about expiring them.  While I can understand the idea of
proactively regenerating your authTokens before they expire, there is
no harm is leaving the old token un-expired until they do so
naturally.  From what I know the limitation is on how often you
request tokens, not how many unexpired ones there are in the wild.

Best,
- Eric Koleda, AdWords API Team

On Feb 5, 5:34 am, nothize  wrote:
> >Is there anyway to force a token to expire?
>
> Not to my knowledge, should be a good alternative but that might not
> be so viable because even a password change needs about 10 minutes to
> expire the token. The Auth Token is meant to be used by all Google
> services, thus there may be issues with real-time expiration in such a
> distributed environment.
>
> >GOOGLE_ACCOUNT_COOKIE_INVALID
> >It that the error reason that should trigger getting a new fresh
> >token?
>
> From my own experience without reading any documents, yes.
>
> There're some ideas in the thread below, see if it 
> fits:http://groups.google.com/group/adwords-api/browse_thread/thread/ed642...
>
> Any proxy layer will surely be working too. Just implement your own
> [request proxy token, try, fail->[request new proxy token, retry],
> success->[done]] mechanism.
>
> On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
>
>
>
>  wrote:
> > One more question. What error reason can I expect when a token
> > expires. I can see that if I put some random value I get this:
> > GOOGLE_ACCOUNT_COOKIE_INVALID
>
> > It that the error reason that should trigger getting a new fresh
> > token?
>
> > Thanks

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



AdWords API Re: Authentication token and requests per second

2010-02-05 Thread nothize
>Is there anyway to force a token to expire?

Not to my knowledge, should be a good alternative but that might not
be so viable because even a password change needs about 10 minutes to
expire the token. The Auth Token is meant to be used by all Google
services, thus there may be issues with real-time expiration in such a
distributed environment.


>GOOGLE_ACCOUNT_COOKIE_INVALID
>It that the error reason that should trigger getting a new fresh
>token?

>From my own experience without reading any documents, yes.

There're some ideas in the thread below, see if it fits:
http://groups.google.com/group/adwords-api/browse_thread/thread/ed642a1b878dc9d7/f6ff482f1c938385?#f6ff482f1c938385

Any proxy layer will surely be working too. Just implement your own
[request proxy token, try, fail->[request new proxy token, retry],
success->[done]] mechanism.

On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
 wrote:
> One more question. What error reason can I expect when a token
> expires. I can see that if I put some random value I get this:
> GOOGLE_ACCOUNT_COOKIE_INVALID
>
> It that the error reason that should trigger getting a new fresh
> token?
>
> Thanks

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



AdWords API Re: Authentication token and requests per second

2010-02-04 Thread Peer Jakobsen (AdWords API Guru)
One more question. What error reason can I expect when a token
expires. I can see that if I put some random value I get this:
GOOGLE_ACCOUNT_COOKIE_INVALID

It that the error reason that should trigger getting a new fresh
token?

Thanks

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