Dear Team,
My application ID 21157979 has been granted access to Twitter Ads API. I fetched my account id
I am trying to hit the below endpoint which does not require any parameters.
https://ads-api.twitter.com/9/accounts
When I am trying to hit this endpoint in POSTMAN, I am getting Unauthorized access. FYI, I tried this with both Bearer Token and OAuth1.0
"errors": [ { “code”: “UNAUTHORIZED_ACCESS”, “message”: “This request is not properly authenticated” } ], “request”: { “params”: {
Can someone please help me on this?
I would suggest reviewing this page and using Twurl to verify your account and app can access the Ads API :
@osowskit1 i just tried twurl to authorize my app, everything worked but still the above issue persist.
I’d suggest using the access tokens that Twurl saved in Postman. They are in a file called ~/.twurlrc on Mac
I did not understand that. twurl will save the same access token as I have in Postman.
Update: - I am able to access the above mentioned endpoint using twurl but not with Postman and in the response I am getting Approval Status: REJECTED
{"request":{"params":{"account_ids":["******"]}},"next_cursor":null,"data":[{"name":"**** ","business_name":null,"timezone":"Pacific/Easter","timezone_switch_at":"2021-06-25T06:00:00Z","country_code":"US","id":"*****","created_at":"2021-06-26T17:43:06Z","updated_at":"2021-06-26T17:48:07Z","industry_type":null,"business_id":null,"approval_status":"REJECTED","deleted":false}]}
Any idea, what does that mean?
Thanks