Stream removed error fetching RSAs

144 views
Skip to first unread message

Justin Knight

unread,
Jul 5, 2022, 9:10:43 AM7/5/22
to Google Ads API and AdWords API Forum
Over the last 4 days we have been seeing this exception when streaming Responsive Search Ads from the Google Ads API using the python library:

2022-07-04T06:51:20.954+01:00
Traceback (most recent call last):
2022-07-04T06:51:20.954+01:00
File "/usr/local/lib/python3.8/site-packages/grpc/_server.py", line 461, in _take_response_from_response_iterator
2022-07-04T06:51:20.954+01:00
return next(response_iterator), True
2022-07-04T06:51:20.954+01:00
File "/app/service/service.py", line 604, in GetResponsiveSearchAds
2022-07-04T06:51:20.954+01:00
for ad in self.GetAdwordsRSA(request):
2022-07-04T06:51:20.954+01:00
File "/app/service/service.py", line 654, in GetAdwordsRSA
2022-07-04T06:51:20.954+01:00
for row in generator:
2022-07-04T06:51:20.954+01:00
File "/app/adwords/reports.py", line 104, in stream_report_data
2022-07-04T06:51:20.954+01:00
for batch in stream:
2022-07-04T06:51:20.954+01:00
File "/usr/local/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 93, in __next__
2022-07-04T06:51:20.954+01:00
raise exceptions.from_grpc_error(exc) from exc
2022-07-04T06:51:20.954+01:00
google.api_core.exceptions.Unknown: None Stream removed

The request ID was "uFsfXv0OjRqg2B8ma0rzGg"

This is an example query:
query: "SELECT campaign.name,ad_group.name,ad_group_ad.ad.responsive_search_ad.headlines,ad_group_ad.ad.responsive_search_ad.descriptions,ad_group_ad.ad.responsive_search_ad.path1,ad_group_ad.ad.responsive_search_ad.path2,ad_group_ad.ad.final_urls,ad_group_ad.labels,ad_group_ad.ad.id,ad_group_ad.status FROM ad_group_ad WHERE ad_group_ad.ad.type = \'RESPONSIVE_SEARCH_AD\' AND ad_group_ad.status IN (\'ENABLED\', \'PAUSED\') AND ad_group.status != \'REMOVED\' AND ad_group_ad.ad.system_managed_resource_source != \'AD_VARIATIONS\' AND campaign.id IN (909310504,938819651,938819654,938819657,938819660,1409202860,1409202863,1409202866,1409202869,1446309069,1650512859,6484816965,6484897424,6484965589,6484965592,6510996159,6510996162,6510996165,6510996168,6510996171,6511086910,6511086913,6511086916,6511086919,6511086922,6511086925,6511086928,6511086931,6511086934,6511086937,6511086940,6511218375,6511218378,6511218381,6511218384,6511218387,6511218390,6511218393,6511218396,6511218399,6511218402,6511218405,6511218885,6511218888,6511218891,6511218894,6511218897,6511218900,6511219578,6511219581,6511219584,6511219587,6511219590,6511219623,6511219626,6511219629,6511219632,6511219635,6511219638,6767253058,6767253061,6767253064,6767253067,6767253070,6767253073,6767253076,6767253079,6767253082,6767253085,6767253088,6767253259,6767253262,6767253265,6767253268,6767253271,9725674020,9725674023,9725674026,9725674029,12297942867,12298126684,12298131250,12298135177,12349394320,13959390682,13959425503,14307696953,14330278995,14333601074,14805434528,14805434531,16072015620,16077624235) AND segments.date >= 20220604 AND segments.date <= 20220704 PARAMETERS omit_unselected_resource_names = true"

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 10:07:55 AM7/5/22
to jus...@search-machines.com, adwor...@googlegroups.com

Hi Justin,

Thank you for reaching out to our API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cGA7Q:ref

Justin Knight

unread,
Jul 5, 2022, 10:15:46 AM7/5/22
to Google Ads API and AdWords API Forum
Thanks Anthony - I've sent logs via the "Reply to author" option

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 2:33:22 PM7/5/22
to jus...@search-machines.com, adwor...@googlegroups.com
Hi Justin,

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

We are not able to see any error. Can you please try to breakdown your query and try again? If you are still facing any error, can you please try to enabled logging by navigating to the Client libraries > Your client library (ex. Python) > Logging documentation, which you can access from this link and provide provide the complete request and response logs, with the request-id? You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions. 

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cGA7Q:ref
Reply all
Reply to author
Forward
0 new messages