AdWords API v201802 refresh token generation

29 views
Skip to first unread message

Daniel Bieńkowski

unread,
Mar 29, 2018, 10:31:31 AM3/29/18
to AdWords API Forum
Hi,

I have web application with scheduler built in. Integration with AdWords works daily automatically.

Is there any possibility to make OAuth working in this approach? Because there won't be any user, who will be authorizing and generating new key.

So, for example, I will first generate refresh token manually, then I will provide it in web config, and then everything will work automatically? Is there a option to refresh this token in the code only? Without user authorization?

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 29, 2018, 6:38:37 PM3/29/18
to AdWords API Forum
Hi Daniel, 

The refresh tokens are long lived (usually years) and hence once that is updated the config file, it should work fine for schedulers as well. When it expires or when the refresh token needs to be renewed, you will need to update the config file with a valid token. To generate a new token the user is required to authorize manually. It is not possible to automate this step. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages