下载报告:等待成功(轮询)多少秒? [英] Downloading Reports: How many seconds to wait for Pending to Success (Poll)?

查看:137
本文介绍了下载报告:等待成功(轮询)多少秒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


希望你能帮助我们。我正在尝试构建一个应用程序,每小时从Bing Ads中提取报告。我不确定的是我需要为Poll请求设置适当的超时持续时间。有时,民意调查的反应转向"成功"。马上,
但有时它需要永远。所以我想知道我应该设置多少秒才能重新发送提交请求?


谢谢


Yeqing

解决方案

报告请求完成所需的时间长度取决于许多变量,例如您请求的报告类型;
您指定的聚合,范围和时间段值;预期行数;以及队列中已有的请求数。由于这些变量,很难为所有情况确定适当的轮询间隔。由于
大多数报告应在几分钟内完成,因此对于大多数情况,以2到15分钟的间隔进行轮询应该是合适的。如果整个轮询周期超过60分钟,请考虑保存报告标识符,退出循环,然后稍后重试。


欲了解更多信息,请参阅

请求并下载报告
。 


我希望这会有所帮助!


Hi guys,

Hope you can help us. I am trying to build an application which pulls reports from Bing Ads hourly. What I am not sure of is the proper time-out duration I need to set for the Poll request. Sometimes the response of Poll turns to "success" immediately, but sometimes it takes forever. So I am wondering how many seconds I should set so that the Submit request can be resend?

Thank you

Yeqing

解决方案

The length of time that it takes a report request to complete depends on a number of variables, such as the type of report that you requested; the aggregation, scope, and time period values that you specified; the number of expected rows; and the number of requests already in the queue. Because of these variables, it is difficult to determine an appropriate polling interval for all cases. Because most reports should complete within minutes, polling at two to 15-minute intervals should be appropriate for most cases. If the overall polling period exceeds 60 minutes, consider saving the report identifier, exiting the loop, and trying again later.

For more information, please see Request and Download a Report

I hope this helps!


这篇关于下载报告:等待成功(轮询)多少秒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆