how to get refresh_token ( using python client)?

1,094 views
Skip to first unread message

pqm peng

unread,
Sep 13, 2021, 9:59:01 PM9/13/21
to AdWords API and Google Ads API Forum
google.auth.exceptions.RefreshError: ('invalid_request: Missing required parameter: refresh_token', '{\n  "error": "invalid_request",\n  "error_description": "Missing required parameter: refresh_token"\n}')

Google Ads API Forum Advisor

unread,
Sep 14, 2021, 2:20:03 AM9/14/21
to pqm...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

If you are asking on how to create refresh token to address the error then, I would suggest following the specific guide below, especially the 3rd and 4th steps for creating refresh token and configuring it in your client library, depending on the oauth2 flow that you have chosen:
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-web

Let me know if you have questions on the provided suggestion.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NTsgd:ref
Reply all
Reply to author
Forward
0 new messages