404 - No service was found

132 views
Skip to first unread message

Devansh Koolwal

unread,
Feb 22, 2023, 1:45:42 AM2/22/23
to Google Ads API and AdWords API Forum
Hey, 
I was referencing this file (github) for establishing the connection to ad manager API, but getting this error


[21 Feb 2023 18:02:30] WARN - "Request made: Service: NetworkService Method: getCurrentNetwork networkCode: XXXXXXX URL: https://ads.google.com/apis/ads/publisher/v201808/NetworkService Request ID: null ResponseTime(ms): null OperationsCount: null IsFault: true FaultMessage: (404)Not Found" - (RemoteCallLoggerDelegate.java:148)
[21 Feb 2023 18:02:30] INFO - "SOAP request:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:RequestHeader xmlns:ns1="https://www.google.com/apis/ads/publisher/v201808" soapenv:mustUnderstand="0">
<ns1:networkCode>XXXXXXX</ns1:networkCode>
<ns1:applicationName>XXXXXXX (DfpApi-Java, Dfp-Axis/4.1.0, Common-Java/4.1.0, Axis/1.4, Java/1.8.0_352, maven)</ns1:applicationName>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>
</soapenv:Body>
</soapenv:Envelope>
" - (RemoteCallLoggerDelegate.java:114)
[21 Feb 2023 18:02:30] INFO - "SOAP response:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:HTTP</faultcode>
<faultstring>(404)Not Found</faultstring>
<detail>
<string>return code: 404
&lt;html&gt;&lt;body&gt;No service was found.&lt;/body&gt;&lt;/html&gt;</string>
<ns2:HttpErrorCode xmlns:ns2="http://xml.apache.org/axis/">404</ns2:HttpErrorCode>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
" - (RemoteCallLoggerDelegate.java:115)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
3 actionable tasks: 2 executed, 1 up-to-date
Exception in thread "main" AxisFault
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
&lt;html&gt;&lt;body&gt;No service was found.&lt;/body&gt;&lt;/html&gt;

(404)Not Found
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
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.v201808.NetworkServiceSoapBindingStub.getCurrentNetwork(NetworkServiceSoapBindingStub.java:671)
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.$Proxy17.getCurrentNetwork(Unknown Source)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':AdManagerService.main()'.
> Process 'command '/Users/devansh.k/Library/Java/JavaVirtualMachines/corretto-1.8.0_352/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
6:11:30 pm: Execution finished ':AdManagerService.main()'.

Google Ads API Forum Advisor

unread,
Feb 22, 2023, 7:39:09 AM2/22/23
to adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.
 

For our team to further check and investigate this, could you please provide us with the complete API logs (request and response with request-id) generated on your end in debug level? Note that this can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled.


This is the specific guideline to enable Java: https://developers.google.com/google-ads/api/docs/client-libs/java/logging

You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

On the other hand, if this is more specific with the java client library then you may reach out instead to the Java client library owner via this link .

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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