Get the access token without browser interaction in C#

958 views
Skip to first unread message

rastreat...@gmail.com

unread,
Mar 26, 2015, 8:33:04 AM3/26/15
to adwor...@googlegroups.com
Hi,

I am creating a console application in C#, and I want to get authentication for google adword to access the adword reports. Can anyone help me to do the process. I do not want any browser interaction in the flow.


thanks,
Nilendra

Anash P. Oommen (AdWords API Team)

unread,
Mar 26, 2015, 3:58:10 PM3/26/15
to adwor...@googlegroups.com
Hi Nilendra,

The easiest way would be for you to generate an OAuth2 refresh token for your top level MCC account using OAuthGenerator application, and add that your application's App.config. See https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2#adding-oauth2-support-to-your-desktop-application for details. 

Let me know if this works for you.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages