Documentation

Bing Ads - Troubleshooting

Updated on

Apr 13, 2026

While configuring your Bing Ads connection, you may encounter several issues. Understanding these common errors can help streamline the setup process and facilitate quick resolutions.

Authorization issues

Authorization error: AADSTS650052 / AADSTS650057

Error message:

{%docs-informer error%} cannot get code for Bing. Error description=AADSTS650052 {%docs-informer-end%}

What this means

The AADSTS650052 error indicates that Microsoft's Advertising API Service lacked a required Service Principal during consent attempts. Despite "Allow user consent for apps" settings, certain Microsoft applications still demand admin-level authorization for proper tenant initialization.

Starting April 2025, Microsoft began enforcing mandatory service principal registration for all multi-tenant applications. Previously, Microsoft silently issued tokens even when the tenant lacked a service principal. Now, this is blocked. Learn more about this change.

Recommended Solution

Option 1: Sign in to Microsoft Advertising with a Tenant Admin (simplest)

Contact your Azure AD Global Administrator to establish access. Have the Azure AD Global Administrator log in directly to ads.microsoft.com and connect the Bing Ads account. This action grants necessary admin consent and automatically provisions the required service principal. After that, go back to Improvado and retry the connection.

Option 2: Create the Service Principal via Microsoft Graph API

If Option 1 doesn't work, the administrator can provision the service principal manually.

Using Microsoft Graph Explorer:

  1. Sign in as an admin.
  2. Run the following request:
POST https://graph.microsoft.com/v1.0/servicePrincipals Content-Type: application/json { "appId": "d42ffc93-c136-491d-b4fd-6f18168c68fd" }

Alternatively, using Azure CLI:

az ad sp create --id d42ffc93-c136-491d-b4fd-6f18168c68fd

Wait a few minutes for propagation, then retry the Improvado connection.

Option 3: Grant Admin Consent via URL

The administrator can visit this URL in a browser (replace {your-tenant-id} with your Microsoft Entra ID tenant ID):

https://login.microsoftonline.com/{your-tenant-id}/adminconsent?client_id=d42ffc93-c136-491d-b4fd-6f18168c68fd

To find your tenant ID: go to Azure Portal → Microsoft Entra ID → Overview → Tenant ID.

Authorization error: IdentityTypeMismatch (Code 126)

Error message:

{%docs-informer error%} "You must use a different identity type to sign in to Bing Ads with the same email." {%docs-informer-end%}

What this means

Your Microsoft Advertising account is linked to a specific identity provider (Microsoft or Google). You are trying to authorize through a different identity provider than the one your account was created with.

Recommended Solution

  • If you originally created your Microsoft Advertising account using a Microsoft/Outlook account, use the default "OAuth" authorization method in Improvado.
  • If you originally created your Microsoft Advertising account using Google Sign-In, use the "Google OAuth" authorization method in Improvado.

If you're unsure which identity provider your account uses, go to ads.microsoft.com and check which sign-in method works.

If none of the provided solutions worked, feel free to raise a request via the Service Desk.

Setup guide

Schema information

Settings

No items found.

Troubleshooting

Troubleshooting guides

Check out troubleshooting guides for
Bing Ads - Troubleshooting
here:

Limits

Frequently asked questions

No items found.
☶ On this page
Description
Related articles
No items found.
No items found.

Questions?

Improvado team is always happy to help with any other questions you might have! Send us an email.

Contact your Customer Success Manager or raise a request in Improvado Service Desk.