Hi Shriny,

It looks like you are attempting to make an InfoService request to the
AdGroupService.  Please ensure you are using the correct WSDL when
generating your service.

Best,
- Eric Koleda, AdWords API Team

On Jan 27, 5:24 pm, shriny <[email protected]> wrote:
> Detailed stacktrace
>
> javax.xml.ws.soap.SOAPFaultException:
> com.google.api.adwords.InfoSelector cannot be cast to
> com.google.api.adwords.AdGroupSelector
>         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 146)
>         at $Proxy42.get(Unknown Source)
>         at
> Caused by: java.lang.ClassCastException:
> com.google.api.adwords.InfoSelector cannot be cast to
> com.google.api.adwords.AdGroupSelector
>         at com.google.api.adwords.Get_WrapperTypeHelper1.createWrapperObject
> (Unknown Source)
>         at
> org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage
> (WrapperClassOutInterceptor.java:103)
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept
> (PhaseInterceptorChain.java:243)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
>         at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:
> 73)
>         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 124)
>         ... 2 more
>
> On Jan 27, 7:09 am, shriny <[email protected]> wrote:
>
>
>
> > I just started looking into new api and tried the InfoService for
> > getting monthly quota
>
> > But I am getting the following error
>
> >  com.google.api.adwords.InfoSelector cannot be cast to
> > com.google.api.adwords.AdGroupSelector
>
> > The error happens in this line
>
> > ApiUsageInfo apiUsageInfo = infoServiceInterface.get(selector, header,
> > holder);
>
> > Any Idea on this error ?
>
> > Shriny

-- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.

Reply via email to