We are trying to implement Twitter Ads API but we are facing issue where some API calls are working properly but some are failing with exception " This request is not properly authenticated".

We are facing an issue in implementing Twitter Ads feature.
API call:
Twitter Ads API for fetching Entities:

Response: { “errors”: [ { “code”: “UNAUTHORIZED_ACCESS”, “message”: “This request is not properly authenticated” } ], “request”: { “params”: {} } }

API call which is working with same credentials:
API call for fetching published tweets

Hi @Shashikantb04 ,
Could you provide your API application ID and a sample call you requested?
Thanks.

Application Id:20609863

Hi @Shashikantb04
I have confirmed your app has full access to Twitter Ads API.
So the problem would be due to the unmatching tokens.
Could you confirm the correct tokens/OAuth are used to request for the specific ads account and try again?
Thanks.

Also, we recommend using Twurl for debugging.

Hi,
There is no issue with tokens as I can fetch promoted tweets with same tokens.
Thanks,

Could you provide the API request (without headers)?

API Call: /9/accounts/18ce53z48gr/tweets?tweet_type=PUBLISHED

I was only able to see a single request that succeeded and failed requests using Postman to both active entities and campaigns endpoints. Could you use the same credentials as the successful Tweets endpoint on the GET accounts/:account_id/authenticated_user_access.

Could you also try regenerating tokens and use Twurl to help determine if this is an issue w/ Postman or the credentials?