Cannot authenticate using python


I am using Python SDK and cannot authenticate. I do not think my code changed but one day it stopped working. I get the following error. How do I get reauthorized

I get the unauthorized error using this command:
account = client.accounts(ACCOUNT_ID)

Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.5/dist-packages/twitter_ads/”, line 89, in accounts
return Account.load(self, id) if id else Account.all(self)
File “/usr/local/lib/python3.5/dist-packages/twitter_ads/”, line 47, in load
response = Request(client, ‘get’, resource, params=kwargs).perform()
File “/usr/local/lib/python3.5/dist-packages/twitter_ads/”, line 72, in perform
raise Error.from_response(response)
twitter_ads.error.Forbidden: <Forbidden object at 0x75b86ea0 code=403 details=[{‘message’: ‘User 910755604494290944 is not authorized to make this request. Please have them reauthorize with your client application python-twitter tomz.’, ‘code’: ‘INSUFFICIENT_USER_AUTHORIZED_PERMISSION’}]>


Hey @JustEnoughJewel ,

There was a breaking change we made recently. You just need to regenerate your access token and secret. See below topic for more details:



Thank You!!