ASP.NET中BingAds的基本设置 [英] Basic Setup for BingAds in ASP.NET

查看:49
本文介绍了ASP.NET中BingAds的基本设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从此处运行示例代码:


https://msdn.microsoft.com/en-us/library/bing-ads-campaign-management- csharp-samples-get-campaigns.aspx?f = 255& MSPPError = -2147217396


我安装了.net SDK并运行了示例代码,但收到以下错误:


在ServiceModel客户端配置部分中找不到引用合同"Microsoft.BingAds.V11.CampaignManagement.ICampaignManagementService"的默认端点元素。这可能是因为没有为您的应用程序找到配置文件,
或因为在客户端元素中找不到与此合同匹配的端点元素。


教程未指定我需要的任何web.config设置 - 我缺少什么?

解决方案

你好。


您发现了一个过时的样本,该样本应该在MSDN上铺设或从MSDN中删除。它不需要或使用SDK。 (请注意,Bing Ads目录中没有显示左侧边栏。)


对于网络应用,请参阅
演练:Bing广告Web应用程序在C#中


否则你可以克隆来自GitHub的样本(随GitHub上的SDK源一起提供)并运行他们在桌面上。


如果您有任何后续问题,请与我们联系。


祝你好运,


埃里克


Trying to run a sample code from here:

https://msdn.microsoft.com/en-us/library/bing-ads-campaign-management-csharp-samples-get-campaigns.aspx?f=255&MSPPError=-2147217396

I installed the .net SDK and ran the sample code but getting the following error:

Could not find default endpoint element that references contract 'Microsoft.BingAds.V11.CampaignManagement.ICampaignManagementService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

The tutorials don't specify any web.config settings I would need - what am I missing?

解决方案

Hello.

You found an outdated sample that should have been paved over or removed from MSDN. It did not require or use the SDK. (Note the Bing Ads table of contents does not appear on the left sidebar.)

For a web app please see Walkthrough: Bing Ads Web Application in C#.

Otherwise you can clone the samples from GitHub (comes with the SDK source on GitHub) and run them on the desktop.

Please let me know if you have any follow up questions.

Best regards,

Eric


这篇关于ASP.NET中BingAds的基本设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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