We are using Google Ad Words java library:
com.google.api.ads.adwords.lib.client

from Maven repository:
com.google.api-ads
ads-lib
4.10.0

We are experiencing random hit and miss exceptions (for example when 
getting list of campaigns).

It seems to me that refreshing user credentials (via web-app oauth flow) 
temporarily makes  it go away.

On google developer console, our app user type is external, and publishing 
type is in production;  Verification status is  Verification in progress.

Sensitive scope we use is Manage your AdWords campaigns.

The exception being raised is: 

Caused by: com.google.api.ads.common.lib.exception.OAuthException: 
Credential could not be refreshed.
Caused by: java.net.SocketTimeoutException: connect timed out

So for example, I can have this above exception, but after one hour it 
might not occur.
But again, it seems that user refreshing token via oauth helps (although 
not not blocking that it might work beyond the point of exception)

I am not at all sure what mechanics are here at play as I don't see 
consistency in this behaviour and asking user to re-fresh credential at 
random times is not good.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/17519275-5c78-4d08-9618-2482b96049ffn%40googlegroups.com.

Reply via email to