Get the report fields from a report |ERROR| Request failed unexpectedly due to RemoteException: (404)Not Found

296 views
Skip to first unread message

Shireen

unread,
Sep 11, 2018, 12:36:36 PM9/11/18
to AdWords API and Google Ads API Forum
Hi, 
I am trying to get the cost field from CAMPAIGN_PERFORMANCE_REPORT but I am getting a RemoteException. While going through the stack trace, I found out that the exception was being thrown from 
ReportDefinitionField[] reportDefinitionFields =reportDefinitionService
                .getReportFields(ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT); 

Well, I am not sure what causes this exception. Please find below the stack trace -

Request failed unexpectedly due to RemoteException: (404)Not Found
AxisFault
 faultSubcode: 
 faultString: (404)Not Found
 faultActor: 
 faultNode: 
 faultDetail: 
{}:return code:  404
<html><body>No service was found.</body></html>

(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.adwords.axis.v201607.cm.ReportDefinitionServiceSoapBindingStub.getReportFields(ReportDefinitionServiceSoapBindingStub.java:577)
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:109)
at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:246)
at com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:62)
at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:92)
at com.sun.proxy.$Proxy17.getReportFields(Unknown Source)
at AdwordsWrapperImpl.runExample(AdwordsWrapperImpl.java:97)
at AdwordsWrapperImpl.main(AdwordsWrapperImpl.java:58)

Thanks, 
Shireen

Milind Sankeshware (AdWords API Team)

unread,
Sep 11, 2018, 4:52:24 PM9/11/18
to AdWords API and Google Ads API Forum
Hi Shireen,

Could you please verify if you are making the API call against an already sunset version of the API? Please refer to this guide to check currently available versions. If you are still facing any issue, please share the report definition along with the client customer id. You can choose 'Reply privately to author' option while responding. 

Thanks,
Milind, AdWords API Team
Reply all
Reply to author
Forward
0 new messages