Hi Charlie,

The RESOURCE_EXHAUSTED error you encountered seems more specific to Java
client library rather than the Google Ads API. This said, I would  suggest
to post your issue on this link
<https://github.com/googleads/google-ads-java/issues> as the Java client
library owners are better equipped to assist you here.

Thanks and regards,
Luis
Google Ads API Team


On 03/14/19 02:08:20 flowers.charles wrote:

Hello,

I've run across an issue where the default grpc frame size is exceeded by a
reporting query. I can't see any way to increase this value when
constructing the GoogleAdsClient or GoogleAdsServiceClient objects. Is
there any other way to inccrease this value? Query and resultant error
message is shown below:

val res = cli.search(customerId, "select customer.descriptive_name,
customer.time_zone, customer.id, campaign.id, campaign.name,
campaign.status, ad_group_ad.ad_group, ad_group.name, ad_group.status,
ad_group_ad.status, ad_group_ad.ad.id, ad_group_ad.ad.name, segments.date,
segments.click_type, segments.ad_network_type, segments.device,
segments.keyword.info.text, segments.keyword.info.match_type,
segments.keyword.ad_group_criterion, metrics.impressions,
metrics.all_conversions, metrics.conversions,
metrics.cross_device_conversions,
metrics.current_model_attributed_conversions,
metrics.view_through_conversions FROM ad_group_ad WHERE segments.date
DURING LAST_7_DAYS and metrics.impressions > 0")

com.google.api.gax.rpc.ResourceExhaustedException:
io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds
maximum size 4194304: 4978193


com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:57)


com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)


com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)


com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97)

  com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)


com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1052)


com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)


com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1030)


com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:871)


com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:716)

  io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:507)

  io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:482)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


com.google.ads.googleads.lib.logging.LoggingInterceptor$1$1.onClose(LoggingInterceptor.java:111)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:678)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:397)

  io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:459)

  io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:546)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:467)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:584)

  io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)

  io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)

  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

  java.util.concurrent.FutureTask.run(FutureTask.java:266)


java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)


java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)


java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

  java.lang.Thread.run(Thread.java:748)

io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds
maximum size 4194304: 4978193

  io.grpc.Status.asRuntimeException(Status.java:526)

  io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:482)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


com.google.ads.googleads.lib.logging.LoggingInterceptor$1$1.onClose(LoggingInterceptor.java:111)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:678)


io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)


io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)


io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)


io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:397)

  io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:459)

  io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:546)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:467)


io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:584)

  io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)

  io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)

  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

  java.util.concurrent.FutureTask.run(FutureTask.java:266)


java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)


java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)


java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

  java.lang.Thread.run(Thread.java:748)

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/691d6779-d0ed-4bfe-bd95-653e83d32fcf%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/691d6779-d0ed-4bfe-bd95-653e83d32fcf%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4g2ogtrrk00000008sj23m002t31ruy6smj4chk6so30c1g68qjed1n%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Java cl... Charlie Flowers
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to