googleads / googleads-java-lib

Google Ad Manager SOAP API Client Library for Java
Apache License 2.0
226 stars 360 forks source link

Invalid element in com.google.api.ads.admanager.axis.v202211.ReportQuery - timeZoneType #248

Closed haibau closed 1 year ago

haibau commented 1 year ago

We have a daily job using the Java client that uses API v202211 to retrieve a month-to-date report, and it has been running fine for a month, up until this afternoon. This error is: rg.xml.sax.SAXException: Invalid element in com.google.api.ads.admanager.axis.v202211.ReportQuery - timeZoneType at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:2470) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.google.api.ads.admanager.axis.v202211.ReportServiceSoapBindingStub.runReportJob(ReportServiceSoapBindingStub.java:907) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:100) at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:234) at com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:63) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93) at com.sun.proxy.$Proxy141.runReportJob(Unknown Source)

lfscheidegger commented 1 year ago

We are also running into the same issue, and there are a few messages in the forum since yesterday reporting the same issue as well (here, here, here).

@jradcliff apologies for mentioning you out of the blue, but this appears similar to this other issue back from 2016, where WSDLs for published versions of the API had been inadvertently changed. Any chance this could be something similar? Thank you!

haibau commented 1 year ago

@lfscheidegger , I temporarily switched to v202202 and it worked, but I have to modify some functions in the source code. Hopefully Google will soon release a new version to fix the above error.

jradcliff commented 1 year ago

Hi,

We're aware of this issue and the team's working on a fix to the API to resolve it. I don't expect that fix to require any client library changes or changes to anyone's usage.

Thanks, Josh

lfscheidegger commented 1 year ago

Thanks @jradcliff ! Do you have an estimate on ETA for the fix?

haibau commented 1 year ago

@jradcliff @lfscheidegger Thanks, this bug has been fixed on V202211 version.