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

7 answers

Sort by: Most helpful
  1. 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.

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

  3. Ravi Doppalapudi 21 Reputation points
    2021-06-03T21:44:03.217+00:00

    Any luck on this? I'm facing the same exact issue.


  4. Eric Urban - MSFT 626 Reputation points Microsoft Employee
    2021-07-05T22:43:24.11+00:00

    @Ravi Doppalapudi and @Paid Search 51 - If you are still observing this error please contact support to review your account and user credentials.

    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

Your answer

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