Hi, Thanks for the quick response. But we still don’t understand how the refresh token is associated with the gmail account i...@alytics.ru. Why - after deleting this user, Google Ads API methods stopped working for us?
Also, you have attached documentation for creating new "credentials and refresh tokens" https://developers.google.com/google-ads/api/samples/generate-user-credentials Confirm - did we understand correctly that using this code you can change the current email i...@alytics.ru to the new mogvai6...@gmail.com - in order to further disable the info@ account, and at the same time the API methods for Google Ads will no longer break? четверг, 4 июля 2024 г. в 21:03:55 UTC+3, Google Ads API Forum Advisor: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > Based on the information provided, I understand that you are encountering > the invalid_grant > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#invalid_grant> > error. > Kindly note that the invalid_grant usually indicates an issue with the > refresh token not with the developer 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. On the > other hand, you may also check this sample code > <https://developers.google.com/google-ads/api/samples/generate-user-credentials> > for > generating user credentials. > > According to the Google Ads API documentation > <https://developers.google.com/google-ads/api/docs/common-errors#google.auth.exceptions.refresherror>, > > Google Cloud Platform project with an OAuth consent screen configured for > an external user type and a publishing status of "Testing" is issued a > refresh > token <https://developers.google.com/identity/protocols/oauth2#expiration> > expiring > in 7 days. Your Google project's publishing status is 'Testing' so the > refresh token expires every 7 days and receives an invalid_grant error. > > > > *This message is in relation to case "ref:!00D1U01174p.!5004Q02tJc8E:ref" > (ADR-00245194) Thanks,* > > [image: Google Logo] *Google Ads API Team* > *Register > <https://adsonair.withgoogle.com/events/performance-max-api-workshop> for > the upcoming workshop: Performance Max and the Google Ads API!* > > > > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8526b095-8a0e-4e6a-b02d-65063cbc39den%40googlegroups.com.