Google API: What is the correct HTTP request to refresh the token?

32 views
Skip to first unread message

G

unread,
Jul 19, 2021, 4:54:51 PM7/19/21
to AdWords API and Google Ads API Forum
What is the correct HTTP request to get a refreshed token ?


There is no such thing as "client_secret" for mobile, only "code". Your API doesn't response more than "code" on the authorization. After the authorization I can do anything but not refresh the token. When I try that I get: StatusCode: 400, ReasonPhrase: 'Bad Request'.

G

unread,
Jul 19, 2021, 5:01:52 PM7/19/21
to AdWords API and Google Ads API Forum
This was the (working) authorization request uri:

This is the (not working) request uri for the token refresh:  

As Content-Type", "application/x-www-form-urlencoded" encoded. What is the correct URI please?

Google Ads API Forum Advisor

unread,
Jul 20, 2021, 10:18:34 AM7/20/21
to bernhar...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please clarify if you are using the Ads or AdWords API? I see you have linked the Workspace Admin SDK. If you are using the Ads API, please see this page for more information for retrieving refresh and access tokens with cURL. 

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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