googleads / googleads-dotnet-lib

Google Ad Manager SOAP API .NET client library
Apache License 2.0
108 stars 199 forks source link

appsettings.json OAuth example #237

Open andreylima opened 3 years ago

andreylima commented 3 years ago

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