RevokeRefreshToken

44 views
Skip to first unread message

pankaj grover

unread,
Jan 2, 2019, 5:00:51 AM1/2/19
to AdWords API and Google Ads API Forum
Hey,
I am using RevokeRefreshToken method for revoking the refresh token in .Net it is not revoking the refresh token and even not giving any error.
Please let me know if you are having same issue.

Bharani Cherukuri (AdWords API Team)

unread,
Jan 2, 2019, 3:31:45 PM1/2/19
to AdWords API and Google Ads API Forum
Hello Pankaj, 

The RevokeRefreshToken revokes the refresh token if offline mode is used. Can you make sure that you set the access_type to offline so that you can retrieve new access tokens  or revoke without re-prompting the user? 

Let me know if you have any further questions. 

Regards,
Bharani, AdWords API Team

Derek T

unread,
Jan 3, 2019, 2:07:38 PM1/3/19
to AdWords API and Google Ads API Forum
Bharani,

I'd like to throw in a "Me, too!" here.  I'm using the .NET library.  When using the provider OAuth2ProviderForApplications, the default value for IsOffline is "true" so that suggests that it's already set to offline.  The examples in your link were not related to the .NET libraries, so I'm unsure if there's another way to validate this.

After using the RevokeRefreshToken() method, there are no errors and the application remains in the permissions list (https://myaccount.google.com/permissions)

Is there an extra step required to get this to work properly?

Bharani Cherukuri (AdWords API Team)

unread,
Jan 3, 2019, 5:22:47 PM1/3/19
to AdWords API and Google Ads API Forum
Hello Pankaj and Derek,

There were a few changes made to the latest version of the .NET client library. It looks like the issue is specific to this. Could you please post your concern on the Github issue tracker so the library owners will be able to take a look?

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