My twitter developer account is the admin for several advertising campaigns, and I am attempting to automate the export of reports on the performance of advertising campaigns. I am doing this by provisioning a daily VM on AWS that makes calls through the Twitter Ads API using my headless application to download the reports and store the data on our AWS server.
I am using the Consumer key and access token generated by the app, and the “account number” of the advertising app (which is a string, strangely. is that the issue?) with the official Twitter python library.
However, whenever I attempt to connect to the ad accounts through my app I get this message.
‘User XXXXXXXXX is not authorized to make this request. Please have them reauthorize with your client application XXXXXXX.’
Is there another step I have to take to enable access to the advertising campaigns?
For reference, I am unable to support a callback URL for 3-legged Oauth as my app is completely headless.
I think I figured it out, I authorized once through the 3-legged Oauth, hopefully I won’t have to reauthorize for every ad account attached to my account once I have the access token.
You can close this issue, thanks!
1 Like