but the token is valid. What do i do?

Hi,
Thank you for reaching out to us. I see that you’re encountering the OAUTH_TOKEN_INVALID error. Can I confirm with you that you’ve filled in your developer token in the correct spot and that it’s the correct access token associated with your account? You should be able to get your developer token when you log into your manager account in the Google Ads UI, then click “Tools & Settings” > “Setup” > “API Center”, and it should list your developer token there. Please also make sure you’ve correctly obtained and put in your refresh token and OAuth credentials, as OAuth2 access expires after a limited time. For more information on OAuth credentials, you can see here. Let me know if you have further questions.
Thank you,
Bryan, Google Ads API Team