Exception in thread "main" com.google.api.ads.common.lib.exception.OAuthException: Credential could not be refreshed.
at com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:229)
at adwords.axis.v201708.basicoperations.GetAdGroups.main(GetAdGroups.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
"error" : "invalid_user"
}
We created a test manager account:luluchen14113@gmail.com
We got the clientId and clientSecret through the test account:
api.adwords.clientId=867462009466-t48l04gtqq3ou6kgapsbeousds3k8pjk.apps.googleusercontent.com
api.adwords.clientSecret=gZ6Dn4GSVs6N557cbWaPfOKJ
call GetRefreshToken.java I get freshToken
api.adwords.refreshToken=4/DmNiW-lM13op0tlnwmiKnC9SRBxP-9EHmpk5NZ-ehvo
Who can help me ???