Googledrive DFP python客户端速度惊人
我正在使用python客户端查询DFPAPI。我试图得到过去2年的创意,但客户的速度实在是太慢了。我的意思是,下载352256字节(压缩)大约需要20分钟 具体而言,我使用以下过滤器:Googledrive DFP python客户端速度惊人,python,google-drive-api,google-dfp,Python,Google Drive Api,Google Dfp,我正在使用python客户端查询DFPAPI。我试图得到过去2年的创意,但客户的速度实在是太慢了。我的意思是,下载352256字节(压缩)大约需要20分钟 具体而言,我使用以下过滤器: // last_modified = today - 2 years statement = dfp.FilterStatement("WHERE '%sT00:00:00' < " "lastModifiedDateTime" % last_
// last_modified = today - 2 years
statement = dfp.FilterStatement("WHERE '%sT00:00:00' < "
"lastModifiedDateTime" % last_modified)
while True:
response = subservice(statement.ToStatement())
if 'results' in response:
for result in response['results']:
formatted_result = formatter(result)
if formatted_result:
output_file.write(json.dumps(formatted_result) + "\n")
statement.offset += dfp.SUGGESTED_PAGE_LIMIT
else:
break