I've been successfully running on .NET client library for well over a 
month.  I have 11.0.1 installed.  

Yesterday, I clicked on the available Updates in NuGet package manager and 
saw that 12.0.0 is now available as well as some updates to Google.Api.Gax 
and several other Google.Api packages.  I ran the updates and fixed a 
single reference where "using Google.Ads.GoogleAds.Util" had to be changed 
to "using Google.Ads.Gax.Util" in order for my code to compile.  Once I did 
this and ran my code, I immediately got the same "Method not found: 
Google.Api.Gax.Grpc.ClientHelper..ctor(Google.Api.Gax.Grpc.ServiceSettingsBase)'."
 
runtime error you reported here when simply trying to grab a 
GoogleAdsClient.  

I didn't have time to trace through things, so I rolled back the changes 
until I can find time to look at it again.  However, it feels like 
something in the client library must still be looking for "Util" within 
Google.Ads.GoogleAds rather than its new home of Google.Ads.Gax. 

On Thursday, June 9, 2022 at 12:19:47 PM UTC-4 Ward wrote:

> /// trying out a brand new installation of the .net client library, and 
> I'm getting this error
> // on a very basic use case that is commonly presented in the Examples.
>
> // n.b. in an effort to diagnose, the classes are fully specified
> //    Once the problem is recognized, I will remove those and rely on 
> using statements.
>
> using System;
> using System.Collections.Generic;
> using System.Collections.Specialized;
> using System.Text;
> using System.Net;
>
> using Google.Ads.GoogleAds;
> using Google.Ads.GoogleAds.V10.Errors;
> using Google.Ads.GoogleAds.V10.Services;
> using Google.Api.Ads.Common.Util;
>
> public class TestGoogleAdsClientAPI_2022 
> {
>     public void run_query( string query )
>     {
>         try
>         {
>             Google.Ads.GoogleAds.Config.GoogleAdsConfig config = new 
>                         Google.Ads.GoogleAds.Config.GoogleAdsConfig()
>             {
>                 DeveloperToken =     "ads_DeveloperToken",
>                 OAuth2Mode =         
> Google.Ads.Gax.Config.OAuth2Flow.APPLICATION,
>                 OAuth2ClientId =     "base._consumerKey_web_app",
>                 OAuth2ClientSecret = 
> "base._consumerSecret_web_app_offline",
>                 OAuth2RefreshToken = "base.refresh_token",
>             };
>     
>             Google.Ads.GoogleAds.Lib.GoogleAdsClient client 
>                         = new Google.Ads.GoogleAds.Lib.GoogleAdsClient();
>
>             GoogleAdsServiceClient googleAdsService 
>                     = client.GetService( Services.V10.GoogleAdsService);   
>    
>      
>             // previous line triggers an Exception, the Message ==
>             // "Method not found: 
> Google.Api.Gax.Grpc.ClientHelper..ctor(Google.Api.Gax.Grpc.ServiceSettingsBase)'."
>
>         }
>         #region TRY_CATCH
>         catch( WebException e )
>         {
>             StringBuilder sb = new StringBuilder();
>             sb.AppendLine( "Error: " );
>             sb.AppendLine( $"Message: {e.Message}" );
>             return sb.ToString();
>         }
>         catch( GoogleAdsException e )
>         {
>             StringBuilder sb = new StringBuilder();
>             sb.AppendLine( "Error: " );
>             sb.AppendLine( $"Message: {e.Message}" );
>             sb.AppendLine( $"Failure: {e.Failure}" );
>             sb.AppendLine( $"Request ID: {e.RequestId}" );
>             return sb.ToString();
>         }
>         catch( Exception e )
>         {
>             return e.Message;
>         }
>         #endregion
>     }
> }
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aa340407-a74b-4439-af15-8245897005fdn%40googlegroups.com.
  • wh... Ward
    • ... CFJ
      • ... Ward
        • ... Ronny Cohen
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Ronny Cohen
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to