At this link 
https://github.com/googleads/googleads-dotnet-lib/wiki/API-access-using-own-credentials-(server-to-server-flow)#step-2---setting-up-the-client-library

They say that I should use the config at the app.config, but I'm using net 
core 3.1 and the cofiguration file is appsettings.json.

Em quarta-feira, 17 de fevereiro de 2021 às 15:16:26 UTC-3, Andrey Lima 
escreveu:

> *After trying to send an event to Google Ads Api with this code:*
>
>                 UploadClickConversionsResponse response =
>                     conversionUploadService.UploadClickConversions(
>                         new UploadClickConversionsRequest()
>                         {
>                             CustomerId = customerId.ToString(),
>                             Conversions = { clickConversion },
>                             PartialFailure = true,
>                             ValidateOnly = false
>                         });
>
>
> *I got the message:*
> 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",  ...... 
>
>
> *After that I've tried to request the token using ServiceAccountCredential 
> wich returned "true" in this function:*
> credential.RequestAccessTokenAsync(CancellationToken.None).Result;
>
>
> *But still doesn't work.*
> Could anyone explain me how can I configure the refresh_token and send it 
> with the UploadClickConversions?
>
> I'm totally stuck. Thanks.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1404a097-929e-4b4b-815f-07e78388e05fn%40googlegroups.com.

Reply via email to