I've got an ASP.Net MVC (Framework version 4.6.2) site where I'm trying to integrate daily expense totals from our Bing Ads campaign through the API.
I've added the package Microsoft.BingAds.SDK
through Nuget and written some code against its classes that compiles, so I figured I could fire it up and see what happens.
What happens is this:
Could not find default endpoint element that references contract 'Microsoft.BingAds.V11.Reporting.IReportingService' 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 error happens in the constructor of the ReportingServiceClient():
var client = new ReportingServiceClient();
I'm not sure how to proceed. There is indeed no endpoint configured in my .config file. I would have expected Nuget to add necessary config, but there's nothing. I have no idea why it didn't, or what I'm supposed to be adding to my .config.