Request
-------
MethodName: google.ads.googleads.v10.services.GoogleAdsService/SearchStream
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=1340476946,
x-goog-api-client=gl-java/1.8.0_60 gccl/17.0.1 gapic/17.0.1 gax/2.6.1
grpc/1.27.2}
Body: customer_id: "1340476946"
query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY
campaign.id"
Response
--------
Headers:
Metadata(content-type=application/grpc,request-id=TSlvnpdQA3nlJ3ZaeE41uA,date=Wed,
06 Apr 2022 07:50:06 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443";
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
error_code {
authentication_error: NOT_ADS_USER
}
message: "User in the cookie is not a valid Ads user."
}
request_id: "TSlvnpdQA3nlJ3ZaeE41uA"
Status: Status{code=UNAUTHENTICATED, description=Request is missing
required authentication credential. Expected OAuth 2 access token, login
cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project.,
cause=null}.
15:50:07.609 [grpc-nio-worker-ELG-1-4] DEBUG
io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf88c96ea,
L:/127.0.0.1:57219 - R:/127.0.0.1:7890] OUTBOUND GO_AWAY: lastStreamId=0
errorCode=0 length=0 bytes=
Exception in thread "main"
com.google.ads.googleads.v10.errors.GoogleAdsException: errors {
error_code {
authentication_error: NOT_ADS_USER
}
message: "User in the cookie is not a valid Ads user."
}
request_id: "TSlvnpdQA3nlJ3ZaeE41uA"
at
com.google.ads.googleads.v10.errors.GoogleAdsException$Factory.createException(GoogleAdsException.java:42)
at
com.google.ads.googleads.v10.errors.GoogleAdsException$Factory.createException(GoogleAdsException.java:34)
at
com.google.ads.googleads.lib.stubs.exceptions.BaseGoogleAdsException$Factory.createGoogleAdsException(BaseGoogleAdsException.java:105)
at
com.google.ads.googleads.lib.callables.GoogleAdsExceptionTransformation.transform(GoogleAdsExceptionTransformation.java:39)
at
com.google.ads.googleads.lib.stubs.callables.ExceptionTransformingServerStreamingCallable$ExceptionTransformingStreamObserver.onError(ExceptionTransformingServerStreamingCallable.java:71)
at
com.google.api.gax.tracing.TracedResponseObserver.onError(TracedResponseObserver.java:103)
at
com.google.api.gax.rpc.RetryingServerStreamingCallable$1.onFailure(RetryingServerStreamingCallable.java:99)
at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)
at
com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1041)
at
com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
at
com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1215)
at
com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
at
com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
at
com.google.api.gax.retrying.BasicRetryingFuture.handleAttempt(BasicRetryingFuture.java:200)
at
com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.handle(CallbackChainRetryingFuture.java:135)
at
com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.run(CallbackChainRetryingFuture.java:117)
at
com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
at
com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1215)
at
com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
at
com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
at
com.google.api.core.AbstractApiFuture$InternalSettableFuture.setException(AbstractApiFuture.java:95)
at
com.google.api.core.AbstractApiFuture.setException(AbstractApiFuture.java:77)
at
com.google.api.core.SettableApiFuture.setException(SettableApiFuture.java:52)
at
com.google.api.gax.rpc.ServerStreamingAttemptCallable.onAttemptError(ServerStreamingAttemptCallable.java:378)
at
com.google.api.gax.rpc.ServerStreamingAttemptCallable.access$600(ServerStreamingAttemptCallable.java:97)
at
com.google.api.gax.rpc.ServerStreamingAttemptCallable$2.onErrorImpl(ServerStreamingAttemptCallable.java:249)
at
com.google.api.gax.rpc.StateCheckingResponseObserver.onError(StateCheckingResponseObserver.java:86)
at
com.google.api.gax.rpc.Watchdog$WatchdogStream.onErrorImpl(Watchdog.java:284)
at
com.google.api.gax.rpc.StateCheckingResponseObserver.onError(StateCheckingResponseObserver.java:86)
at
com.google.api.gax.grpc.ExceptionResponseObserver.onErrorImpl(ExceptionResponseObserver.java:84)
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:463)
at
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:427)
at
io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:460)
at
io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:557)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:69)
at
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:738)
at
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:717)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at
io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
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
com.liberica.downloadmovie.controller.TestGoogleApi.main(TestGoogleApi.java:65)
Caused by: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request is
missing required authentication credential. Expected OAuth 2 access token,
login cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project.
at io.grpc.Status.asRuntimeException(Status.java:535)
... 17 more
在2022年4月6日星期三 UTC+8 15:05:06<adsapi> 写道:
> Hi,
>
>
> Thanks for the response, I am also a member of the Google Ads API team and
> let me provide support to your concern.
>
>
> Moving forward to your concern, I think you follow all the steps by giving
> my colleague. In this case can you provide the complete API logs (request
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
> and response
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> with request-id
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>)?
>
> I asked because the last time you gave us a request and response all logs
> are redacted.
>
>
> Regards,
> [image: Google Logo]
> Darwin
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2ZJ5so:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/e63c2e06-5c36-4315-978b-a776e6486039n%40googlegroups.com.