How to use Audiences API with a bearer token?


#1

Hi,

I am trying to use a bearer token that I generated following the guide here: https://developer.twitter.com/en/docs/ads/general/guides/obtaining-ads-account-access

When I use it with the audiences api (https://developer.twitter.com/en/docs/ads/audiences/overview), I get this error code “UNAUTHORIZED_ACCESS” and message This request is not properly authenticated.

Does the audiences api support the bearer token authorization?
If yes is there any permission to enable?

Thanks


#2

Hi @aminelaa ,

As far as I know, Ads API endpoints don’t support OAuth 2 at this point. Please use OAuth 1.0a instead.

Best,
Shohei


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.