When i am trying to make my first api call i get "the request is not valid for the application's 'user audience'"

Yuval Simhi 1 Reputation point
2021-09-20T09:56:58.007+00:00

II am making an API call using authentication-oauth-quick-start. When I use my app's client id, I receive the following error "the request is not valid for the application's 'user audience'".
How can I make it work and get my access token?

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.
402 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Urban - MSFT 626 Reputation points Microsoft Employee
    2021-10-24T13:27:20.223+00:00

    You must select Accounts in any organizational directory and personal Microsoft accounts during the initial app registration. This setting cannot be updated later in the portal unless you modify the application manifest e.g., "signInAudience": "AzureADandPersonalMicrosoftAccount". Please double check your settings.

    1 person found this answer helpful.
    0 comments No comments