I found this error log when I tried to connect Google Ads API.


Request
-------
MethodName: google.ads.googleads.v2.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=5788147835, 
x-goog-api-client=gl-java/1.8.0_191 gapic/1.0 gax/1.0 grpc/1.0}
Body: [FAILED toString()]

Response
--------
Headers: null
Body: null
Failure message: null
Status: Status{code=UNAVAILABLE, description=io exception, 
cause=io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException:
 
null: googleads.googleapis.com/216.58.199.106:443
 


What I think it's because of proxy.

However I cannot find the solution how can I set the proxy in Java library. 
I found the solution for only PHP.

 

https://developers.google.com/google-ads/api/docs/client-libs/php/proxy

 

Could you figure out how to do it because I cannot find something like 
“.setProxy” method?


This is how we create the Google Ads client.

 

GoogleAdsClient
    .newBuilder()

    .fromProperties(oauthProperties)

    .build()



 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/52c36dfb-38c6-4444-963e-e097ff75a789%40googlegroups.com.

Reply via email to