Bing Ads API Client Libraries

You can develop Bing Ads API applications with any programming language that supports web services. The Bing Ads API Software Development Kits (SDK) enhance the experience of developing Bing Ads API applications with .NET, Java, PHP, and Python languages. Each SDK includes a proxy to all Bing Ads API web services and abstracts low level details of authentication with OAuth. You can use the high level BulkServiceManager and ReportingServiceManager interfaces to abstract and execute operations in the low level Bulk and Reporting services. For example instead of calling SubmitGenerateReport and PollGenerateReport to download a report, you download a report using one method with the ReportingServiceManager class.

Note

The PHP SDK does not include BulkServiceManager and ReportingServiceManager interfaces as described for the other three SDKs.

SDK Repositories

SDK Documentation Source Distribution Code Examples License
Bing Ads .NET SDK Get Started GitHub NuGet GitHub | Docs Bing Ads .NET SDK License
Bing Ads Java SDK Get Started GitHub Maven GitHub | Docs Bing Ads Java SDK License
Bing Ads PHP SDK Get Started GitHub Packagist GitHub | Docs Bing Ads PHP SDK License
Bing Ads Python SDK Get Started GitHub PyPi GitHub | Docs Bing Ads Python SDK License

Namespaces

Latest Namespaces

The SDKs support all active Bing Ads API Web Service Addresses in sandbox and production.

You should use the following namespaces corresponding to the latest version of each service. These are the supported high level public namespaces. Internal and lower level namespaces are not documented here. You can find out more information about internal namespaces within the GitHub SDK Repositories for each SDK.

Namespace Description
Microsoft.BingAds Provides classes related to authentication that can be used to access any Microsoft Advertising Web Service.
Content API clients can use the authentication classes provided with the SDK; however, the SDK does not include classes for calling the Content API.
Microsoft.BingAds.V13.AdInsight Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Ad Insight service.
Microsoft.BingAds.V13.Bulk Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Bulk service.
Provides classes to accelerate productivity for downloading and uploading entities. For example an instance of the BulkServiceManager class can submit your download request to the bulk service, poll the service until completed, and download the file to the local directory that you specified in the request. Use the BulkFileReader class instead of writing a file parser to read the download results. The BulkFileReader provides access to the bulk file records in BulkEntity derived classes, which contain the familiar data objects and value sets in version 13 of the Campaign Management service.
Microsoft.BingAds.V13.CampaignManagement Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Campaign Management service.
Microsoft.BingAds.V13.CustomerBilling Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Customer Billing service.
Microsoft.BingAds.V13.CustomerManagement Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Customer Management service.
Microsoft.BingAds.V13.Reporting Provides proxy classes to the service operations, data objects, and value sets defined for version 13 of the Reporting service.
Provides classes to accelerate productivity for downloading reports. For example an instance of the ReportingServiceManager class can submit your download request to the reporting service, poll the service until completed, and download the file to the local directory that you specified in the request.

See Also

Bing Ads API Web Service Addresses