Hey, 
I have an issue sending a listaccessablecustomer request using the API. 
I send the request like so ->

(.listAccessibleCustomers customer-service (-> (
ListAccessibleCustomersRequest/newBuilder)
(.build)))

(the google client is created using the userCredentials from 
(com.google.auth.oauth2 
UserCredentials))

the customer service is created like so ->

customer-service (-> (.getLatestVersion googleads-client)
(.createCustomerServiceClient))

but I a feed of errors : 

{"timestamp":"2022-02-07T16:23:33.513+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-1","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:33.516+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-1","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:34.347+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-0","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:34.347+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-0","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:35.164+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-1","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:35.164+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-1","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:41.275+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-0","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:41.275+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-0","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:44.103+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-1","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:44.103+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-1","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:52.689+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-0","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:52.689+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-0","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:54.489+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-1","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:23:54.490+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-1","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:24:04.114+02:00","message":"FAILURE REQUEST 
SUMMARY. Method: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers, 
Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: null, 
ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.","logger_name":"com.google.ads.googleads.lib.request.summary","thread_name":"grpc-default-executor-0","level":"WARN","facility":"DEV","environment":"DEV","hostName":"DEV"}
{"timestamp":"2022-02-07T16:24:04.115+02:00","message":"FAILURE REQUEST 
DETAIL.\nRequest\n-------\nMethodName: 
google.ads.googleads.v9.services.CustomerService/ListAccessibleCustomers\nEndpoint:
 
googleads.googleapis.com:443\nHeaders: {developer-token=REDACTED, 
x-goog-api-client=gl-java/1.8.0_211 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 
grpc/1.27.2}\nBody: \n\nResponse\n--------\nHeaders: null\nBody: 
null\nFailure message: null\nStatus: Status{code=UNAVAILABLE, 
description=Credentials failed to obtain metadata, 
cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized\nPOST https://oauth2.googleapis.com/token\n\tat 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116)\n\tat 
com.google.auth.oauth2.UserCredentials.doRefreshAccessToken(UserCredentials.java:273)\n\tat
 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:190)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:257)\n\tat
 
com.google.auth.oauth2.OAuth2Credentials$1.call(OAuth2Credentials.java:254)\n\tat
 
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat
 
java.lang.Thread.run(Thread.java:748)\n}.","logger_name":"com.google.ads.googleads.lib.request.detail","thread_name":"grpc-default-executor-0","level":"INFO","facility":"DEV","environment":"DEV","hostName":"DEV"}

The errors does not stop, I don't retry it is something that is happening 
inside the package, can you please assist?

PS, when trying with a different refresh-token (one recently created) It 
works. how do I stop the request from retrying and failing. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fb1eaaae-2bb2-43b5-9a29-f73fcff748ddn%40googlegroups.com.

Reply via email to