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

7 answers

Sort by: Newest
  1. Akshay Surve 5 Reputation points
    2023-05-10T11:13:33.87+00:00
    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
    - Select the App and the required msads.manage and ads.manage permissions
    
    For folks who are not able to see the "Microsoft Advertising API Service" in 'APIs my organization uses' - here is a catch which we figure out after trying for a few days. 
    
    "Microsoft Advertising API Service" gets added automatically on signing for a Microsoft Advertising account (https://ads.microsoft.com/). 
    
    Your Azure account will be under a directory xxx.onmicrosoft.com. You will need a work account user eg: user1@xxx.onmicrosoft.com and will need to signup for Microsoft Advertising account using that user. This will ensure that your Azure direction gets the "Microsoft Advertising API Service" 
    
    1 person found this answer helpful.
    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

  3. nenad 16 Reputation points
    2021-08-26T10:29:40.93+00:00

    @Paid Search 51 I am experiencing the same issue.

    I don't see "Microsoft Advertising API Service" under "APIs my organization uses" tab.
    How does one enable it?

    2 people found this answer helpful.

  4. 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

  5. Ravi Doppalapudi 21 Reputation points
    2021-07-06T16:30:54.08+00:00

    Hi @Eric Urban - MSFT we are still facing the same issue and contacted support, no update yet.

    0 comments No comments