Overview
This source syncs performance reports from the Microsoft Advertising API (Bing Ads API v13) using the officialbingads Python SDK.
Reports are requested asynchronously: the connector submits a report request, polls until the result is ready, downloads the data, and emits one record per row. The three performance-report streams use daily aggregation by default and sync incrementally on TimePeriod per ad account, so only new or updated days are fetched on subsequent runs. The ad_labels stream is a full-table stream built from current Campaign Management ad label associations.
Authentication uses OAuth 2.0 with a refresh_token (no service accounts). You provide an Azure AD application’s client_id (and optionally client_secret) alongside a developer_token that identifies your API application.
Configuration
Legacy key:accountsis accepted as an alias foraccount_idsfor backwards compatibility.
Sample configs
Minimal — production environment, daily reports:Streams
Performance report streams sync incrementally on
TimePeriod (one bookmark per ad account). On the first run the full history from start_date is fetched; subsequent runs fetch only new or updated days. The ad_labels stream syncs as full table from the current label associations returned by the Campaign Management API.
How to get credentials
1. Developer token
- Sign in to Microsoft Advertising as the account owner or a user with API access.
- Go to Tools → API Center (or visit the Microsoft Advertising API Center directly).
- Request and copy your developer token.
2. Azure AD app (client_id / client_secret)
- Open Azure Portal → App registrations and click New registration.
- Choose Public client / native for desktop flows (no
client_secretrequired) or Web for server flows. - Add
https://login.microsoftonline.com/common/oauth2/nativeclientas a redirect URI (or your own URI for web flows). - Copy the Application (client) ID →
client_id. - For web flows: go to Certificates & secrets and create a client secret →
client_secret.
3. Refresh token
Use the Microsoft Advertising OAuth guide to complete the authorization code flow with the scopehttps://ads.microsoft.com/msads.manage offline_access. Copy the resulting refresh_token into your config.
4. customer_id and account_ids
Find these in the Microsoft Advertising UI:
- Customer ID — shown in the top-right account selector next to your account name.
- Account IDs — visible in Accounts Summary or each account’s settings page.
Related links
- Microsoft Advertising API — Get Started
- Authentication with OAuth
- Reporting Service overview
- ReportTimeZone values