BingAds API v9 ReportingServiceClient始终为空 [英] BingAds API v9 ReportingServiceClient is always Null

查看:100
本文介绍了BingAds API v9 ReportingServiceClient始终为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我最近从v8迁移到v9。在版本8中,Bing没有关键字和广告的状态列,它在我看来已包含在v9中。



我在项目中添加了v9的服务参考。但是在尝试下载报告时,我收到了Null异常错误。这就是我声明和初始化ReportingServiceClient的方式(如示例代码所示):



    private static ReportingServiceClient _service; //始终获得空白
    public string GetReport(ref string errDescription)

    {

        _service = new ReportingServiceClient(); //这里抛出了空例外因为
        ...... ...
       返回"某事物";

    }


我找不到合适的帖子可以解决这个问题。如果你已经解决了这个问题,请帮助我分享你的经验。



谢谢!



.NET Developer

Hi,
I am recently migrating from v8 to v9. In version 8 Bing did not have Status columns for Keywords and Ads, which looks to me they have included in v9.

I have added Service Reference for v9 in my project. But when trying to download the report I am getting a Null exception error in . This is how I have declared and initialized the ReportingServiceClient (as shown in the sample code):

    private static ReportingServiceClient _service; //Always getting Null
    public string GetReport(ref string errDescription)
    {
        _service = new ReportingServiceClient(); //Null exception is being thrown here
        ... ...
        return "something";
    }

I could not find a suitable post yet which can resolve this problem. If you already have this sorted out, please help me y sharing your experience.

Thank you!


.NET Developer

推荐答案

你好。



您是否完全按照此处的规定使用样品,或者您进行了哪些修改?

http://msdn.microsoft.com/en-US/library/ bing-ads-reporting-request-and-download-a-keyword-performance-report-in-csharp.aspx



确切的错误信息是什么?您是否可以拨打Bing Ads Reporting服务?如果是这样,请提供SOAP请求和响应(无密码或ID),如下所述:

http://msdn.microsoft.com/en-US/library/aa983155.aspx#engagesupport



最好的问候,

Eric

Hello.

Are you using the sample exactly as provided here, or what modifications have you made?
http://msdn.microsoft.com/en-US/library/bing-ads-reporting-request-and-download-a-keyword-performance-report-in-csharp.aspx

What is the exact error message, and are you able to make a call to the Bing Ads Reporting service? If so please provide the SOAP request and response (without password or IDs) as described here:
http://msdn.microsoft.com/en-US/library/aa983155.aspx#engagesupport

Best regards,
Eric


这篇关于BingAds API v9 ReportingServiceClient始终为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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