Newly generated access token in not working instantly in the linkedin-ads API

Viewed 41

I'm getting this response (with 401 error code) after using the new refreshed access token:

{'serviceErrorCode': 65601, 'code': 'REVOKED_ACCESS_TOKEN', 'message': 'The token used in the request has been revoked by the user'}

I followed this guide to refresh the access token: https://docs.microsoft.com/en-us/linkedin/shared/authentication/programmatic-refresh-tokens?view=li-lms-2022-07#step-2-exchanging-a-refresh-token-for-a-new-access-token

Although it works after several seconds. It seems like the issue is from the LinkedIn-Ads API side. Is there an exact time to wait after generating the access token?

0 Answers
Related