DownloadRequestId无效如何修复 [英] The DownloadRequestId is invalid how to repair
问题描述
伙计们,女孩们。
我想下载大量的bingads。但我总是得到错误3205
"OperationError":{
$
  ;  +" Code":" 3205", +" Details":"The DownloadRequestId无效。",$
+"ErrorCode":""CampaignServiceInvalidDownloadRequestId","
+" Message":"DownloadRequestId无效。"
$
我得到请求downloadID是整数,但是当我尝试轮询bulkreport时状态我得到以上错误我的函数用于创建服务以轮询它如下:
受保护的函数createPoll(int $ reportRequestId)
{
$ request = new GetBulkDownloadStatusRequest();
$ request-> ReportRequestId = $ reportRequestId;
$ this-> reportingEnv = $ this-> connection-> createEnvForBulkRaport();
$ status = $ this-> reportingEnv-> GetService() - > GetBulkDownloadStatus($ request) - > RequestStatus;
    返回$ status;
}
和$ this-> reportingEnv是这样的:
私人函数createBulkServiceClient()
;  {
$ this-> reportServiceClient = new ServiceClient(
ServiceClientType :: BulkVersion11,
$ this-> authData,
AuthHelper :: GetApiEnvironment());
}
公共功能createEnvForBulkRaport()
{
$ this-> createBulkServiceClient();
返回$ this-> reportServiceClient;
}
我可以设置正确的requestId。
request-> ReportRequestId =
reportRequestId;
应该是
Hi guys, girls.
I'm tring to download bulk of bingads. but i always get error 3205
"OperationError": {
+"Code": "3205",
+"Details": "The DownloadRequestId is invalid.",
+"ErrorCode": "CampaignServiceInvalidDownloadRequestId",
+"Message": "The DownloadRequestId is invalid."
i get request downloadID that is integer, but when i try to poll for bulkreport status i get above error my function used to create service to poll it as follows:
protected function createPoll(int $reportRequestId)
{
$request = new GetBulkDownloadStatusRequest();
$request->ReportRequestId = $reportRequestId;
$this->reportingEnv = $this->connection->createEnvForBulkRaport();
$status = $this->reportingEnv->GetService()->GetBulkDownloadStatus($request)->RequestStatus;
return $status;
}
and $this->reportingEnv is like this :
private function createBulkServiceClient()
{
$this->reportServiceClient = new ServiceClient(
ServiceClientType::BulkVersion11,
$this->authData,
AuthHelper::GetApiEnvironment());
}
public function createEnvForBulkRaport()
{
$this->createBulkServiceClient();
return $this->reportServiceClient;
}
i'm possitive that i set right requestId.
request->ReportRequestId =
reportRequestId;should be
这篇关于DownloadRequestId无效如何修复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!