问题描述
我最近从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
推荐答案
这篇关于BingAds API v9 ReportingServiceClient始终为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!