I was trying use the Googles Ads Api ,in the part of document First Call: 
Get Campaigns.
I got an error .

Request
-------
MethodName: google.ads.googleads.v7.services.GoogleAdsService/SearchStream
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/1.8.0_112-ea 
gapic/ gax/1.63.0 grpc/1.36.0}
Body: customer_id: "1303449992"
query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY 
campaign.id"


Response
--------
Headers: null
Body: null
Failure message: null
Status: Status{code=INTERNAL, description=channelRead() missed by 
ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], 
cause=null}.
Exception in thread "main" com.google.api.gax.rpc.InternalException: 
io.grpc.StatusRuntimeException: INTERNAL: channelRead() missed by 
ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
at 
com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:67)
at 
com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
at 
com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
at 
com.google.api.gax.grpc.ExceptionResponseObserver.onErrorImpl(ExceptionResponseObserver.java:82)
at 
com.google.api.gax.rpc.StateCheckingResponseObserver.onError(StateCheckingResponseObserver.java:86)
at 
com.google.api.gax.grpc.GrpcDirectStreamController$ResponseObserverAdapter.onClose(GrpcDirectStreamController.java:149)
at 
io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at 
io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at 
io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at 
com.google.ads.googleads.lib.logging.LoggingInterceptor$1$1.onClose(LoggingInterceptor.java:113)
at 
io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
at 
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
at 
io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Suppressed: java.lang.RuntimeException: Asynchronous task failed
at 
com.google.api.gax.rpc.ServerStreamIterator.hasNext(ServerStreamIterator.java:105)
at GetCampaigns.runExample(GetCampaigns.java:97)
at GetCampaigns.main(GetCampaigns.java:57)
Caused by: io.grpc.StatusRuntimeException: INTERNAL: channelRead() missed 
by ProtocolNegotiator handler: PooledUnsafeDirectByteBuf(ridx: 0, widx: 2, 
cap: 1024)
Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, 
HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
at io.grpc.Status.asRuntimeException(Status.java:535)
... 21 more
please tell me what should i do.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8d7324d7-d08a-4038-8766-5b32b6ee6a63n%40googlegroups.com.

Reply via email to