support for oAuth2 when run as a windows service

11 views
Skip to first unread message

Brian Maynard

unread,
Sep 8, 2021, 4:14:55 AM9/8/21
to AdWords API and Google Ads API Forum
Hi,

I've been trying to get this to work now for about a week. I am now so confused as to how this works.

I am writing a windows service that will upload audience lists. But as a windows service. It will run without supervision. But when I try to do the OAuth. ( I have the ClientID and ClientSecret). It redirects me to a web page where I must authenticate the user. 

Can you please point me in the right direct where, Once I authenticate using the ClientID  and ClientSecret I get the token returned and not have to do more authentication?

Thanks

Google Ads API Forum Advisor

unread,
Sep 8, 2021, 8:59:38 AM9/8/21
to brian.m...@gmail.com, adwor...@googlegroups.com
Hi,

If you don't want to perform manual step, then there is a service account option. Please refer to the following guide:
https://developers.google.com/google-ads/api/docs/oauth/service-accounts

Thanks,

Google Logo
Lakshmi Prathipati
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2NSJsw:ref

Brian Maynard

unread,
Sep 9, 2021, 2:06:59 AM9/9/21
to AdWords API and Google Ads API Forum
Thanks, I will try that.
Reply all
Reply to author
Forward
0 new messages