I also tried to research why my Refresh Token expired. I mean, the whole point of a Refresh Token is so that you generate Access Tokens and they are the ones to expire, not your Refresh Token. I looked at the bullet items from this page from Google's docs and none of those bullet items applied to us:
https://developers.google.com/identity/protocols/oauth2#expiration On Tuesday, July 26, 2022 at 5:42:18 PM UTC-4 Mike M wrote: > On the tail end of this request, to fully automate this Refresh Token > renewal, do you think that I may need to generate a Service Account instead > of doing it the Web Application oAuth Client technique? > > > https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-service > > We have purchased a separate domain and put it into Google WorkSpace for > where we manage our Google Ads API credentials, but the domain where we may > the API call is separate from this domain. So, I don't know if that will > work. Honestly, I don't know why the Refresh Token suddenly stopped working > using the Desktop oAuth Client ID (which I have since switched to the Web > Application oAuth Client ID). > > > > On Tuesday, July 26, 2022 at 5:29:11 PM UTC-4 Mike M wrote: > >> I've been using 2 API calls to batch upload google offline click >> conversions. One generates the Access Token. The other is the API call to >> upload the offline click conversions. >> >> All was well for a few weeks until suddenly we started getting >> invalid_grant messages when trying to generate the Access Token. No clue >> why -- and we received no email or anything from Google on this. It just >> stopped working and the invalid_grant error was cryptic and the online help >> didn't explain much. >> >> I resolved this issue by following this video to generate a new Refresh >> Token in the Google oAuth Playground: >> >> https://youtu.be/KFICa7Ngzng >> >> So, my question for the Google Adwords API team is -- can we automate >> this somehow? I can trap the invalid_grant JSON response and then would >> like to do some series of REST API calls to generate a new Refresh Token. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/dcef1a76-79f6-4744-af56-fbc27d1d3067n%40googlegroups.com.
