search_stream return incomplete data if taken over a long period of time

188 views
Skip to first unread message

Dekstrin

unread,
Jun 16, 2022, 11:46:54 AM6/16/22
to Google Ads API and AdWords API Forum
Hello I have a problem with google ads api.  For some reason  search_stream return incomplete data if taken over a long period of time. Do you have a limit with 1020 rows for stream? 
I'm using python client (google-ads-python). 
The code example:
gads_client = GoogleAdsClient.load_from_dict(settings.GOOGLE_ADS_CREDENTIALS)
ga_service = gads_client.get_service("GoogleAdsService")
stream = ga_service.search_stream(customer_id=customer_id, query=query)

So in the results we have random set of 1020 raws if we take metrics for several months, 
but if we request metrics for one day - we have full and fine set of metrics.
Is there any limit for search_stream ?  (I found that only search has some limitations)

Google Ads API Forum Advisor

unread,
Jun 16, 2022, 3:10:52 PM6/16/22
to alex.ba...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

A Search or SearchStream request counts as one operation against the user's daily operation quota. One SearchStream request counts as one API operation irrespective of the number of batches.  Please see this documents. Let me know if you have any question.

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bx3nc:ref

Dekstrin

unread,
Jun 17, 2022, 3:40:46 AM6/17/22
to Google Ads API and AdWords API Forum
But what about the root question ? I mean why SearchStream  could return  limited (random) set of data for large time periods or maybe large amount of metrics in my case? 
Because if I take it for 1 day - it's fine.  If I take it for half of the year - I've got random limited set of data without any logic in it. 

четверг, 16 июня 2022 г. в 22:10:52 UTC+3, adsapi:

Google Ads API Forum Advisor

unread,
Jun 17, 2022, 11:13:02 AM6/17/22
to alex.ba...@gmail.com, adwor...@googlegroups.com
Hi Dekstrin,


Thank you for reaching out to the Google Ads API support team.

If you want to perform unlimited operation via searchstream, you can request a standard access for your developer token. I suggested it because the standard access for developer token has unlimited number operations per day. You can request standard access for your developer token by following this guide. Let me know if you have any question.
Reply all
Reply to author
Forward
0 new messages