ETLMCPData Conveyance Works
Log in Start free
Guides

Can't connect Microsoft Advertising: wrong account type, admin approval and AADSTS codes

Why a Microsoft Advertising connect fails after you sign in: the wrong identity type, Google logins, admin consent and blocked work-account sign-ins.

Coming This connector is coming.

Most Microsoft Advertising connects that fail right after you sign in fail for one of two reasons: you picked a Microsoft identity of the wrong type for your Microsoft Advertising login, or your organization's Entra ID settings stop a work account from granting access. The fix is to choose the other identity in Microsoft's account chooser, to ask your IT admin to approve the app or relax a sign-in policy, or, if your login is a Google account, to have someone invite a Microsoft login into the account.

One email, several identities

A single email address can stand for a personal Microsoft account, a work or school account in Microsoft Entra ID, or a Google account, and Microsoft Advertising registers your login as one of them. When the connector is available, etlmcp signs you in through the Microsoft identity platform on the common tenant, which Microsoft recommends so that both personal and work accounts can sign in. It sends prompt=select_account, so Microsoft shows its account chooser on every connect instead of silently reusing whoever the browser is signed in as. It asks for two scopes: msads.manage for the Ads API and offline_access for a refresh token.

If Microsoft's chooser offers "Work or school account" and "Personal account" for the same email, the right one is the type your Microsoft Advertising login was created with.

The identity-type error codes

Sign-in itself succeeds with the wrong identity. Microsoft Advertising then refuses it when the app first asks who you are. These are the codes its operation error list gives:

Code Name What to do
120 UserLoginAccessDenied These credentials were merged into another login by multi-user consolidation and can no longer sign in. Use the primary login.
122 PersonalIdentityNotAvailable You chose a personal Microsoft account, but your Microsoft Advertising login is a work account. Choose the work account.
123 WorkIdentityNotAvailable You chose a work account, but your login is a personal Microsoft account. Choose the personal account.
124 PersonalIdentityMigratedToWork This personal account was moved to a work account. Sign in with the work account.
125 PersonalIdentityNotAllowedByCustomer Your organization requires its users to sign in with their work email. Use the work account.
126 IdentityTypeMismatch The type you chose differs from the one registered for this email. The reason is GoogleAccountIsRequired, PersonalAccountIsRequired or WorkAccountIsRequired.

What etlmcp shows

When the connector is available and Microsoft refuses the signed-in user after you granted consent, etlmcp cannot read your Microsoft Advertising identity, saves nothing, and the sources page says The platform did not complete the connection. Try again. It does not show Microsoft's code. Trying again with the same identity ends the same way, so change the identity you pick, or the setting behind the error, before you retry.

If Microsoft instead sends your browser back with an error, for example because you declined consent or a policy blocked the sign-in, etlmcp shows Connecting was cancelled on the platform; nothing was saved. The AADSTS code appears on Microsoft's own sign-in page, so note it there before you leave.

Logins that require a Google account

Microsoft documents a separate Google OAuth flow that API apps can use for users whose Microsoft Advertising login is a Google account. etlmcp's Microsoft connector offers only Microsoft sign-in, so a login that needs Google (code 126 with GoogleAccountIsRequired) cannot be connected. Ask a Super Admin or a Standard user on the account to invite a Microsoft login, personal or work, and connect with that one. A Standard user can invite Standard users, Advertiser Campaign Managers and Viewers. The Viewer role is read-only, with read access to every service, which is enough for reporting.

Work accounts: admin consent and AADSTS codes

A work account is governed by its organization's Entra ID tenant. By default, users there may consent to apps for any permission that does not need an administrator, but admins can limit user consent, for instance to apps from verified publishers only, or turn it off. Then the user sees one of these:

  • AADSTS90094: administrator consent is required.
  • AADSTS90095: the admin consent workflow is on, and you are told to request approval from an admin.

Either way, an Entra administrator has to grant consent for the app, or approve your request.

AADSTS650052 says the app needs access to the Microsoft Advertising service, which your organization has not subscribed to or enabled. Microsoft's Advertising guide says to make sure at least one admin user of your Entra tenant is added and enabled for work accounts in the Microsoft Advertising web app, and to contact Microsoft support if that does not help.

Three more codes come from your organization's sign-in policies, not from Microsoft Advertising:

  • AADSTS53003: a Conditional Access policy blocked the sign-in. Your admin has to review the policy that applied.
  • AADSTS50076: multifactor authentication is required for this sign-in. Retry and complete the MFA prompt.
  • AADSTS50079: you must register for multifactor authentication first. Register a security method, then connect again.

For errors once a connection works, see why Microsoft Ads connections drop and Microsoft Advertising connector errors.

Related

Sources

  1. Bing Ads API Operation Error Codes - Microsoft Advertising API — learn.microsoft.com, checked
  2. Request user consent - Microsoft Advertising API — learn.microsoft.com, checked
  3. Account Hierarchy and User Permissions - Microsoft Advertising API — learn.microsoft.com, checked
  4. Handling Service Errors and Exceptions - Microsoft Advertising API — learn.microsoft.com, checked
  5. Microsoft Entra authentication & authorization error codes - Microsoft identity platform — learn.microsoft.com, checked
  6. Configure How Users Consent to Applications - Microsoft Entra ID — learn.microsoft.com, checked