huangyifan 1 жил өмнө
parent
commit
c16550975d

+ 1 - 1
sync_amz_data/public/amz_ad_client.py

@@ -262,7 +262,7 @@ class SPClient(BaseClient):
                 yield from info['bidRecommendations']
                 yield from info['bidRecommendations']
             except:
             except:
                 print("空值")
                 print("空值")
-                return []
+                return iter([])
 
 
     def get_keyword_bidrecommendation(self, adGroupId: str, keyword: list, matchType: list):
     def get_keyword_bidrecommendation(self, adGroupId: str, keyword: list, matchType: list):
         keywords = list(map(lambda x: {"keyword": x[0], "matchType": x[1]}, list(zip(keyword, matchType))))
         keywords = list(map(lambda x: {"keyword": x[0], "matchType": x[1]}, list(zip(keyword, matchType))))