Bing Ads API: Error Code 650052

Paid Search 51 21 Reputation points
2021-05-25T21:41:49.477+00:00

We are following documentation

, but when we try to Request User Consent, we get the following error message

AADSTS650052: The app needs access to a service ('https://ads.microsoft.com') that your organization 'xxx-xxx-xxxx-xxxx' has not subscribed to or enabled. Contact your IT Admin to review the configuration of your service subscriptions.

How can we fix this?

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.
391 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Paid Search 51 21 Reputation points
    2021-08-23T15:32:33.203+00:00

    The fix for this was simple. In Azure add API Permission "Microsoft Advertising API Service" to your App Registration

    • In Azure, go to App Registrations
    • Select your app
    • Click on API Permissions from the menu option
    • Click Add a Permission
    • Click Tab: APIs my organization uses
    • Search for Microsoft Advertising API Service
    • click Grant admin consent ... button
    0 comments No comments

  2. Paid Search 51 21 Reputation points
    2021-08-26T19:35:04.72+00:00

    I am unsure how or when our Microsoft Advertising API Service appeared under "APIs my organization uses" tab.
    When I created an MS Ad account, then with in MS Ad, I changed my email from a personnel account to a Work Account, possibly that's when Microsoft Advertising API Service appeared.

    0 comments No comments