Getting Your Developer Token

To use the Microsoft Advertising API (Bing Ads API), you need a developer token. Here's how to get one:

Step-by-Step Process

  1. Sign in to Microsoft Advertising: Go to the Microsoft Advertising web UI
  2. Navigate to Settings: Click the gear icon → "Developer Token"
  3. Generate token: Click "Get token" — your developer token will be displayed
  4. Save your token: Store it securely; you'll need it for all API calls

Authentication Setup

Microsoft Advertising API uses OAuth 2.0 for authentication:

  1. Register an app: In Azure Portal, register a new application
  2. Get client ID and secret: Note these from the app registration
  3. Set redirect URI: Configure the redirect URI for your application
  4. Request OAuth tokens: Use the authorization code flow to get access and refresh tokens

API Endpoints

EnvironmentEndpointUse Case
Productionhttps://api.ads.microsoft.comLive advertising data
Sandboxhttps://api.sandbox.ads.microsoft.comTesting & development

Client Libraries

Microsoft provides SDKs for multiple languages:

  • Python: `bingads` package on PyPI
  • PHP: `bingads-php-sdk` on Packagist
  • Java: `bingads-java-sdk` on Maven
  • C#: NuGet package `Microsoft.BingAds.SDK

Common API Operations

  • Campaign management (create, update, delete)
  • Bulk operations (download/upload campaigns)
  • Reporting (performance, search terms, etc.)
  • Audience management (customer lists)
  • Conversion tracking (offline conversions)
Related: For Google Ads API integration, see our Google Ads API Guide. For Bing Ads audience upload via API, check Bing Ads Audience Upload.

Related Articles


← Back to Home