Failed to create OAuth credentials. Check OAuth settings in the ads.properties file. Exception: com.google.api.ads.common.lib.exception.OAuthException: Credential could not be refreshed.

28 views
Skip to first unread message

Rakesh Chauhan

unread,
Jul 16, 2019, 5:39:40 AM7/16/19
to AdWords API and Google Ads API Forum

Hello to all


currently i am working on one project and i am integrating google adwords api in that project , but after getting refresh token when i try to get Campaign then it give me below type of exception


here is the exception


Failed to create OAuth credentials. Check OAuth settings in the ads.properties file. Exception: com.google.api.ads.common.lib.exception.OAuthException: Credential could not be refreshed.


i don't know how to solve it , can you please help me to solve this type of exception ?

Google Ads API Forum Advisor Prod

unread,
Jul 17, 2019, 1:50:43 AM7/17/19
to adwor...@googlegroups.com

Hi Rakesh,

This kind of error usually occurs when the access token or refresh token is invalid or incorrect. Could you confirm if you followed this guide (or similar guide) to generate a refresh token? If no, could you try to generate a new refresh token by following the guide and retry your request?

Please let me know if the issue persists after trying the suggestion.

Regards,
Hiroyuki
Google Ads API Team



ref:_00D1U1174p._5001U8LWOt:ref
Reply all
Reply to author
Forward
0 new messages