hello dears, According to this example, because this request only returns the access token and not the refresh token.
https://accounts.google.com/o/oauth2/v2/auth? scope=https%3A//www.googleapis.com/auth/adwords& access_type=offline& include_granted_scopes=true& response_type=code& state=*state*& redirect_uri=*https://app.roalytics.com/auth <https://app.roalytics.com/auth>**&* <https://accounts.google.com/o/oauth2/v2/auth?scope=https%3A//www.googleapis.com/auth/drive.metadata.readonly&state=state_parameter_passthrough_value&redirect_uri=https%3A//oauth2.example.com/code&access_type=offline&response_type=code&client_id=583306224539-atbcaa8ne8g85e8kc006o6vmq99qiid0.apps.googleusercontent.com> client_id=10836400011x <http://1083640001126-dqmcanfio7p1trd76hnvhk7glk7esqad.apps.googleusercontent.com> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx the scope scope=https%3A//www.googleapis.com/auth/drive.metadata.readonly& This does return both tokens. thanks El vie, 4 nov 2022 a las 3:34, Google Ads API Forum Advisor (<adsapi@forumsupport.google>) escribió: > Hi, > > Thank you for the reply. > > As stated by my colleague Yasar, "*you may use our client libraries > <https://developers.google.com/google-ads/api/docs/client-libs> where > refresh tokens do not expire for a long time if your OAuth app is already > verified and it does handle access tokens itself*," and since you > mentioned that your backend is Python (API Python), then I would recommend > you check this documentation > <https://developers.google.com/google-ads/api/docs/first-call/refresh-token#python> > as it has the instructions on how to generate an OAuth2 refresh token and > set up the configuration file for your client. > > Best regards, > [image: Google Logo] > Heidi > Google Ads API Team > > > ref:_00D1U1174p._5004Q2fp4Ks: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/CAD86o6A35Sxxm1_%3D5GNhtfsu_wM%2B-yPjsZ6ar9iCviW93yO7FA%40mail.gmail.com.