Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsCredentialsExpiredException' when trying to download report

243 views
Skip to first unread message

anir...@deltax.com

unread,
Apr 27, 2015, 5:27:32 AM4/27/15
to adwor...@googlegroups.com
I get an Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsCredentialsExpiredException' when the service is running on producition but when i debug from local, I dont get this same error. What could be the reason cause I cant for the life of me figure out.

Rocky Jaiswal

unread,
Apr 27, 2015, 8:33:11 AM4/27/15
to adwor...@googlegroups.com
The Adwords OAuth token have a certain expiry time. Are you sure that locally you have fresh tokens and on the prod servers you are not somehow using old tokens. On prod you can log the token issued_at timestamp to check this (just a suggestion).

Thanks,
Rocky

anir...@deltax.com

unread,
May 18, 2015, 2:52:32 AM5/18/15
to adwor...@googlegroups.com
hi,

yes, I specifically copied tokens from productions to local and ran my service. This is bizarre isnt it!

Josh Radcliff (AdWords API Team)

unread,
May 18, 2015, 11:57:58 AM5/18/15
to adwor...@googlegroups.com, anir...@deltax.com
Hi,

In addition to the tokens, are you using the same client_id and client_secret in production that you're using locally? If not, then your production process won't be able to retrieve a new access_token using that refresh_token.

If that's not the source of the problem, could you try enabling logging in production to see if any more details are logged around the time when the AdWordsCredentialsExpiredException occurs?

Thanks,
Josh, AdWords API Team

Reply all
Reply to author
Forward
0 new messages