how do I get a long live token?

26 views
Skip to first unread message

Ankit Agarwal

unread,
Jul 18, 2019, 10:26:28 AM7/18/19
to AdWords API and Google Ads API Forum
Currently, I am using a short-lived token. Since it is short, it is valid for a very short duration and I don't want to make my user login after every short duration of time.

Google Ads API Forum Advisor Prod

unread,
Jul 18, 2019, 3:54:04 PM7/18/19
to ankit....@lsasoftware.com, adwor...@googlegroups.com

Hi Ankit,

Thank you for reaching support. An access token has an expiration time (based on the expires_in value) after which the token is no longer valid. You can use the refresh token to refresh an expired access token. Please refer to this guide to create OAuth2 refresh token to automatically renew OAuth2 access. By default, our client libraries automatically refresh expired access tokens. Let us know if this helps

Regards,
Nikisha Patel, Google Ads API Team



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