Get Started Using C# with Bing Ads Services
To get started developing Bing Ads applications with a .NET language, you can start with the provided examples or follow one of the application walkthroughs for a Web or Desktop application. The examples have been developed with the Bing Ads .NET SDK and Visual Studio Community. Your custom configuration may vary.
You will need user credentials with access to Bing Ads either in production or sandbox. For the production environment you will need a production developer token. All sandbox clients can use the universal sandbox developer token i.e., BBD37VB98. For more information, please see Get Started With the Bing Ads API and Sandbox.
To authenticate with a Microsoft Account (email address username) in production, you must also must register an application and get the corresponding client identifier. You also need to take note of the client secret and redirect URI if you are developing a web application. For authentication details, see Authentication With the SDKs.
Install the SDK
To use the Bing Ads .NET SDK, you must first install and use .NET Framework 4.5 or later. In Visual Studio Community go to the project Properties -> Application -> Target framework and make sure that .NET Framework 4.5 is selected.
Install the Bing Ads .NET SDK through NuGet, either through the Manage NuGet Packages user interface, or through the Package Manager Console. For information about installing NuGet, see http://docs.nuget.org.
The NuGet installation includes the following required libraries.
- Microsoft.BingAds.dll - The Bing Ads .NET SDK
Manage NuGet Packages
Right-click on your Visual Studio project and select Manage NuGet Packages.
Browse online for Microsoft.BingAds.SDK e.g., try searching for bingads..
Select the project or projects where you want the SDK installed, and click the Install button*.
NuGet Package Manager Console
Click on Tools -> NuGet Package Manager -> Package Manager Console.
Choose the default project where you want the SDK installed, and then within the console command line, type