DownloadRequestId无效如何修复 [英] The DownloadRequestId is invalid how to repair

查看:130
本文介绍了DownloadRequestId无效如何修复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,女孩们。


我想下载大量的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屋!

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