invalid_grant after updating developer token

879 views
Skip to first unread message

kl...@pangeare.com

unread,
Mar 5, 2018, 1:42:57 AM3/5/18
to AdWords API Forum
Hello, 

We recently lost access to our original manager account email, so we granted access to another account, then made that account the manager. 
After regenerating our developer token, we are now getting this message. 

INFO:oauth2client.client:Refreshing access_token
INFO:oauth2client.client:Failed to retrieve access token: {
  "error" : "invalid_grant",
  "error_description" : "Account has been deleted"
}

Is there anyway to update refresh_token?

Thanks!

Vincent Racaza (AdWords API Team)

unread,
Mar 5, 2018, 2:32:35 AM3/5/18
to AdWords API Forum
Hi,

It seems that the original manager account's email address (aside from using this in requesting the developer token originally) was also used to generate the OAuth2 credentials (client ID, client secret, refresh token) that's why you received the invalid_grant error with "Account has been deleted" error description even after updating the developer token.

With this, I recommend you to generate a new OAuth2 credentials by selecting a new user with admin/standard access from the new manager account. The guide includes the "Configure and use a client library" section which has a step-by-step guide in generating the refresh token depending on the client library that you are using.

If the issue still persists after following the suggestion, then kindly provide your SOAP request and response logs or any error logs together with the API user's email address and clientCustomerId via Reply privately to author option so I can further investigate.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages