Exception: No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact

116 views
Skip to first unread message

KG

unread,
Dec 9, 2020, 2:25:07 PM12/9/20
to AdWords API and Google Ads API Forum
Trying to migrate from AdWords API to Google Ads API. Using v6.

In my POM file I have:

<dependency>
  <groupId>com.google.api-ads</groupId>
  <artifactId>google-ads</artifactId>
  <version>10.0.0</version>
</dependency>

I even added explicitly:

<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-okhttp</artifactId>
  <version>1.30.0</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-netty</artifactId>
  <version>1.30.0</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-netty-shaded</artifactId>
  <version>1.30.0</version>
</dependency>

But I'm still getting  this:

Exception in thread "main" io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact


When I try to do this:

        GoogleAdsServiceClient googleAdsService = client.getLatestVersion().createGoogleAdsServiceClient();


I'm pretty much stuck at "hello world" at this point.

Any ideas?

P.S. I wish there was a giant jar with all dependencies shipped without any need to use Maven or anything else. That is known to work as is, without needing anything else.

Google Ads API Forum Advisor Prod

unread,
Dec 11, 2020, 1:49:41 AM12/11/20
to adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

You may follow this document to know how to migrate from the AdWords API to the Google Ads API. If you are using the Java client library, you may also refer to this document as it will guide on how you will configure your API environment in the Java client library.

However, if you have further questions / concerns on configuring your API environment, and since client library related concerns are outside of our scope already, then you may post it here to get support from the author of the Java client library.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q28ojdf:ref
Reply all
Reply to author
Forward
0 new messages