How to fix AADSTS650052 error when connecting microsoft ads connector on fivetran

Karan, Kshitij 0 Reputation points
2025-05-08T14:18:53.21+00:00

Hi,

I am using fivetran to bring microsft ads data into my system. When I click on authorize, the following message pops up:

AADSTS650052: The app is trying to access a service 'd42ffc93-c136-491d-b4fd-6f18168c68fd'(Microsoft Advertising API Service) that your organization '2567d566-604c-408a-8a60-55d0dc9d9d6b' lacks a service principal for. Contact your IT Admin to review the configuration of your service subscriptions or consent to the application in order to create the required service principal. Trace ID: bec1f95d-47dc-4765-9eb6-852849160800 Correlation ID: 827b2c79-bb40-4e4f-8945-d7c282bb4fdd Timestamp: 2025-05-08 14:16:33Z

How can I fix that?

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manoj 0 Reputation points
    2025-10-16T11:38:16.2566667+00:00

    Hi Karan,

    Good day!

    Registered application behavior is determined by how your Azure AAD tenant has been set up and how users can provide the consent for any app during authentication process. Your Azure AAD tenant administrator can review user consent settings here: https://free.blessedness.top/azure/active-directory/manage-apps/configure-user-consent?pivots=portal#configure-user-consent-settings.

    • If you are trying to authenticate but receive error AADSTS650052, there are a few different root causes for this issue. This likely means that the Microsoft Advertising application ID (d42ffc93-c136-491d-b4fd-6f18168c68fd) doesn't exist in your tenant. This can happen if you are trying to authenticate to a tool provider and never created your own Azure App registration and added msads.manage to it. To fix this, you will need to contact the Active Directory administrator and have them run the following Graph API call to add the Microsoft Advertising app to your tenant.

    Copy

    POST https://graph.microsoft.com/v1.0/servicePrincipals
    Content-type: application/json
    {
      "appId": "d42ffc93-c136-491d-b4fd-6f18168c68fd"
    }
    

    References:

    Regards,

    Manoj

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.