bingads.exceptions.OAuthTokenRequestException Error while generating performance report.

Think 360 11 Reputation points
2022-02-01T11:53:10.913+00:00

I am trying to generate a performance report from Microsoft Ads through an API call. I am following Microsoft Learn Authentication with OAuth documentation. I have created an app, requested the user consent, and got the access and refresh token successfully. But when I tried to get to the performance report, I am getting "bingads.exceptions.OAuthTokenRequestException Error"

170158-screenshot-58.png

I have used the python code to generate reports from Python code to request and download Microsoft Advertising report using Microsoft Advertising API

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,144 questions
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
0 comments No comments
{count} votes

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.