googleads-dotnet-lib icon indicating copy to clipboard operation
googleads-dotnet-lib copied to clipboard

appsettings.json OAuth example

Open andreylima opened this issue 4 years ago • 0 comments

I'm trying to run "UploadClickConversionsRequest", but I'm working with .Net Core 3.1 that doesn't use the app.config, but the appsetting.json instead.

Does someone have an example of authentication in this case?

When I try to send the conversion I get this error: RpcException: Status(StatusCode="Unavailable", Detail="Getting metadata from plugin failed with error: Exception occurred in metadata credentials plugin. Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_request", Description:"Missing required parameter: refresh_token",

Thanks Andrey Lima

andreylima avatar Feb 25 '21 14:02 andreylima