如何解决com.google.api-ads 报错ResponseCode: UNAVAILABLE, Fault: io exception.
最近做项目需要上传一些数据到谷歌api,主要用到了这个google-api-ads这个包,程序写好后在本机调试一切正常不过部署到产品的过程当中报错ResponseCode: UNAVAILABLE, Fault: io exception. 经过一整天研究,大概原因2个
1. HTTPS 你需要确保你环境能够访问HTTPS
googleads.googleapis.com:443 这个网站是谷歌api上传的目标地址,你需要确保相应的https证书在环境配置好了https://pki.goog/repository/
2.如果不是上面环境,那大概率就是你的网络/防火墙或密钥配置问题了,请确保clientId/clientSecret/refreshToken/customerId 配置正确。
<dependency>
<groupId>com.google.api-ads</groupId>
<artifactId>google-ads</artifactId>
<version>27.0.0</version>
</dependency>
c.g.ads.googleads.lib.request.summary : FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v14.services.ConversionAdjustmentUploadService/UploadConversionAdjustments, Endpoint: googleads.googleapis.com:443, CustomerID: 0000000, RequestID: null, ResponseCode: UNAVAILABLE, Fault: io exception.