[英]What is the limit for async jobs in Facebook Python SDK?
I'm creating an async job with Facebook's Python SDK to get the insights (impressions, action_values, etc) for my Facebook campaigns.我正在使用 Facebook 的 Python SDK 创建一个异步作业,以获取我的 Facebook 活动的见解(印象数、action_values 等)。 Right now I'd like to pull all the campaigns for the previous year by month.
现在,我想逐月提取上一年的所有广告系列。 The total number of results should be around
2,000
.结果的总数应该在
2,000
左右。 If I set the limit param in get_result to anything higher than 1000 I get a FacebookRequestError
.如果我将 get_result 中的限制参数设置为高于1000的任何值,我会得到一个
FacebookRequestError
。 The async_job async_job
(see code below) runs, and using (见下面的代码)运行,并使用
api_get()
I can tell that it pulls all the records.我可以说它提取了所有记录。 Is there anyway to pull all of the results from the
async_job
?无论如何要从
async_job
中提取所有结果吗?
async_job = my_account.get_insights_async(fields=params.get('fields'), params=params)
async_job.api_get(
while async_job.api_get()['async_percent_completion'] < 100:
time.sleep(1)
async_job.api_get()
data = async_job.get_result(params={'limit':1000})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.