I am getting the following even though if I use this in uploadconversion, it works fine. { "error": "invalid_client", "error_description": "Unauthorized" }
I want to do the validation so that my uploadconversion doesnt get caught into infinite invalid_grant loop , because for some unknown reason invalid_grant error put the program into infinite loop of invalid_grant On Tuesday, March 22, 2022 at 9:29:54 PM UTC+11 adsapi wrote: > Hi Anurag, > > Thanks for getting back to us. > > For more details about the refresh token expiration, you may refer to this > *document* > <https://developers.google.com/identity/protocols/oauth2#expiration> from > the Google Identity Platform OAuth. However, the access token has an > expiration time (based on the *expires_in* > <https://tools.ietf.org/html/rfc6749#appendix-A.14> value) after which > the token is no longer valid. You can use the refresh token to refresh an > expired access token. By default, our client libraries automatically > refresh expired access tokens. Also, you may encounter an 'invalid_grant' > error whenever the refresh token expires or is not valid in the Google Ads > API. you may use the cURL below to check if your refresh token is valid or > not: > > > curl \ > > --data "grant_type=refresh_token" \ > > --data "client_id=CLIENT_ID" \ > > --data "client_secret=CLIENT_SECRET" \ > > --data "refresh_token=REFRESH_TOKEN" \ > > https://www.googleapis.com/oauth2/v3/token > > > Let us know if you have any further questions. > > Regards, > [image: Google Logo] > Yasar > Google Ads API Team > > > ref:_00D1U1174p._5004Q2Ypmvm: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 "Google Ads API and AdWords 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/95675447-6c58-426e-b294-c6765fa96d72n%40googlegroups.com.