none
Unable to get refresh token to download data from bingads api RRS feed

  • Question

  • Hi,

    we have a requirement to pull data from bing ads api.in order to do that we are trying to get the refresh token first.we took the sample python code from GitHub (v13) to connect and pull data from bingads.Added developer token and created an app in azure and copied client id from there to python code.Trying to authenticate using OAUTH2 . When we are running python code report_requests.py to get the refresh token from the GitHub example, we are getting below error.

    https://login.microsoftonline.com/common/oauth2/nativeclient?error=invalid_client&error_description=AADSTS650052%3a+The+app+needs+access+to+a+service+(%5c%22https%3a%2f%2fads.microsoft.com%5c%22)+that+your+organization+%5c%22d42d2665-34bc-455a-b54d-0d85df6a72c5%5c%22+has+not+subscribed+to+or+enabled.+Contact+your+IT+Admin+to+review+the+configuration+of+your+service+subscriptions.%0d%0aTrace+ID%3a+4dca3f4c-bfa2-4eb2-8f8c-96e868506600%0d%0aCorrelation+ID%3a+77280e43-3081-4ec5-8548-dc6e94353e1c%0d%0aTimestamp%3a+2019-07-02+20%3a35%3a16Z&error_uri=https%3a%2f%2flogin.microsoftonline.com%2ferror%3fcode%3d650052&state=ETL_TOOL
    
    

    Azure app setup:

    redirect URL: https://login.microsoft.com/common/oauth2nativeclient?

    Supported account type: Accounts in any organizational directory

    Please suggest what is the issue here and what can we do to resolve this? Immediate assistance will be really helpful.

    Tuesday, July 2, 2019 10:08 PM

Answers

All replies