thank you for your reply. I know that my token has expired. I mean, how can I get this error when the token has expired. Now as long as the token expires, this log will always be printed when requesting any interface (because the request will be repeated all the time), but I cannot catch the token expiration error through the code (try catch). Keeping output logs can easily cause my computer's memory to overflow. Is there any way to solve it? thanks
On Monday, August 16, 2021 at 3:09:51 PM UTC+8 adsapi wrote: > Hi Xu, > > Thanks for reaching out to us. > > Upon checking the error log screenshot you’ve provided with us, it appears > that you've encountered an invalid_grant error. Kindly note that the > invalid_grant usually indicates an issue with the refresh token. That said, > you’ll need to regenerate credentials and refresh tokens. You may refer > here to this guide > <https://developers.google.com/google-ads/api/docs/oauth/client-library> > for the steps on how you can regenerate credentials and refresh tokens. > > If you still continue to encounter issues with the said token, even after > following the steps from the above guide, I would recommend that you reach > out to the Google API Console Support team via this link > <https://support.google.com/googleapi/answer/7014572?hl=en> instead. > > Let us know if you have any further questions. > > Regards, > [image: Google Logo] > Yasar > Google Ads API Team > > > > ref:_00D1U1174p._5004Q2Lmwrj:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7a2963f7-c3ca-488b-a424-914ee35c91a1n%40googlegroups.com.