Bing Ads
Connecting to Bing Ads
You need to register a Bing Ads account, get a developer token, and authenticate using OAuth to connect to the Bing Ads APIs.
Register a Bing Ads Account
Complete the following steps to sign up for a Bing Ads account and obtain the CustomerId and (optional) AccountId:
Sign up for a Bing Ads account in the Bing Ads Web application or at the Sandbox Site for a sandbox account.
Select Settings > Accounts and Billing and select a single account. The AccountId and CustomerId (cid) are displayed on the account's page and in the page's URL.
Get a Developer Token
To use the Bing Ads APIs, you must have a DeveloperToken in addition to the CustomerId. You must have the Super Admin role in Bing Ads to create a developer token, though you do not need special permissions to use the token.
Log in at the Bing Ads Developer Portal as a Microsoft Account user with the Bing Ads Super Admin role.
Click Request Token and take note of your developer token. You will set it in the DeveloperToken connection property.
Authenticate via OAuth Authentication
The Bing Ads APIs use the OAuth 2 standard.
If you have not done so already, sign up for a Bing Ads account in the Bing Ads Web application or at the Sandbox Site for a sandbox account.
Go to the Azure portal (Azure test portal for sandbox accounts), and login with your Microsoft Account credentials when prompted.
Under Azure Active Directory --> App registrations, click New registration.
Provide the application name and select an appropriate Supported account type. Not selecting to allow personal Microsoft accounts will prevent users with personal accounts from authenticating.
Set the Redirect URI to the page in your Web application where you would like users to be redirected with the OAuthVerifier
Register your application and take note of your Application (client) Id. You will use it as the OAuthClientId value in the OAuth grant flow.
In the Certificates & secrets section, click New client secret to generate a client secret and take note of the resulting value. You will use it as the OAuthClientSecret value.
Last updated