Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

google ads api throwing "Google.Apis.Auth.OAuth2.Responses.TokenResponseException"

Hello,

My company has implemented the Google Ads API to send Google Ads Enhanced Conversions.  The developer who created the C# .NET console application that performs this as a scheduled task is no longer with the company.  We are now getting this error message:

"[09:36:22 INF] One or more errors occurred. (Status(StatusCode="Internal", Detail="Error starting gRPC call. TokenResponseException: Error:"invalid_grant", Description:"Account has been deleted", Uri:""", DebugException="Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_grant", Description:"Account has been deleted", Uri:""")) : 2/2/2025 9:36:22 AM"

I thought maybe the oauth credentials went away when the developer who created the app left the company, but In the Google Cloud console, under APIs & Services / OAuth consent screen, the application appears with the Client ID and client secret that are being used in the application config.  So it seems like the OAuth authentication should still work.  Would appreciate any feedback about what could be wrong.

0 1 291
1 REPLY 1

Hi @scottwb98,

Welcome to Google Cloud Community!

It seems like this kind of setup needs further assistance. For more detailed guidance, please feel free to reach out to the google support team.