Closed zubair-jaleel closed 1 year ago
I am facing the same issue
@zubair-jaleel @rhani96 apologies for the delayed response here. Are you still running into this problem? If so my recommendation is to reduce the size of your request so that the stream doesn't need to stay open as long. You could try reducing the date range from three days down to one.
Describe the bug: For past few days I have a similar issue like this one: https://groups.google.com/g/adwords-api/c/Gx4QN7ER33s?pli=1. I need to get the campaign data from 2014 (backfill). I am using SearchGoogleAdsStreamRequest (search stream), and I am not using any pagination. I am using below python extraction code with 3 days difference (date interval) between the start & end date of the search query and I am running this extraction code in a loop (with 1 second sleep time between each loop iteration) to backfill data from 2014-01-01. After few loop iterations the SearchGoogleAdsStreamRequest is stuck, without any error/warning logs. I have rerun the script multiple times with different date intervals and sleep time intervals and even refreshed (reauthenticated) the GoogleAdsClient object for every 1000 request, but the script still got stuck at some point. When I ran the backfill for just few days its working fine. Therefore, the problem is only when I run the script for long time. Please let me know how to solve this.
This is my code:
Steps to Reproduce:
Expected behavior:
Client library version and API version:
requirements.txt file content:
Request/Response Logs:
AWS CloudWatch log of the request that I made:
INFO:logging_interceptor.py: Request made: ClientCustomerId: XXX, Host: googleads.googleapis.com, Method: /google.ads.googleads.v13.services.GoogleAdsService/SearchStream, RequestId: IokzYJhE1Z-nXZcin0q_ng, IsFault: False, FaultMessage: None
Request with header:
Got No response for the request since my request is stuck without any warnings/errors
Anything else we should know about your project / environment: