Hi i have granted this webapp permission to access my ad account but when i 
try to get client data getting the error "", _developerToken, _clientId, 
_clientSecret are what i use to get the account .RefestToken, but when I 
reuse it here it gives an error, here is my code:

 GoogleAdsConfig config = new GoogleAdsConfig()
                {
                    DeveloperToken = _developerToken,
                    OAuth2Mode = 
Google.Ads.Gax.Config.OAuth2Flow.APPLICATION,
                    OAuth2ClientId = _clientId,
                    OAuth2ClientSecret = _clientSecret,
                    OAuth2RefreshToken = account.RefestToken,
                };

                GoogleAdsClient googleAdsClient = new 
GoogleAdsClient(config);
CustomerServiceClient customerServiceClient =
                    
googleAdsClient.GetService(Google.Ads.GoogleAds.Services.V11.CustomerService);

Google.Ads.GoogleAds.V11.Errors.GoogleAdsException: 
'Status(StatusCode="InvalidArgument", Detail="Request contains an invalid 
argument.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1681123473.142000000","description":"Error received from peer 
ipv4:142.251.130.10:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}")'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/0447bd01-4931-4ab8-b4b7-51afd3c2b5ean%40googlegroups.com.

Reply via email to