Could not find policy 'pick_first'.

1,228 views
Skip to first unread message

Rui Zhang

unread,
Dec 5, 2019, 4:37:18 AM12/5/19
to AdWords API and Google Ads API Forum
Hello there:
      I used listAccessibleCustomers from google ads Api, but I got an error, it was strange.
the code is:
            String queryCustomSql = "SELECT customer_client.id, customer_client.descriptive_name,                         customer_client.client_customer,customer_client.currency_code,customer.auto_tagging_enabled FROM  customer_client";
            GoogleAdsVersion latestVersion = googleAdsClient.getLatestVersion();
            CustomerServiceClient customerService = latestVersion.createCustomerServiceClient();
            GoogleAdsServiceClient googleAdsServiceClient = latestVersion.createGoogleAdsServiceClient();
            ListAccessibleCustomersResponse response = customerService.listAccessibleCustomers(ListAccessibleCustomersRequest.newBuilder().build());
the error is:
           java.lang.IllegalStateException: Could not find policy 'pick_first'. Make sure its implementation is either registered to LoadBalancerRegistry or included in META-INF/services/io.grpc.LoadBalancerProvider from your jar files.

i need help, Thanks you.


Google Ads API Forum Advisor Prod

unread,
Dec 5, 2019, 3:15:31 PM12/5/19
to litb...@gmail.com, adwor...@googlegroups.com

Hello Rui,

Thanks for reaching out. The error seems to be related to the client libraries and not the API. You might find this post on the Github Issue Tracker useful to mitigate the error faced on your end. If not, I would recommend posting your concern on the Github Issue Tracker as our client libraries team will be able to assist you better with your concerns. Let us know if you have any API related concerns.

Regards,
Nikisha Patel, Google Ads API Team



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