Adwords API OAuth2 authentification dotnet json SERVICE_ACCOUNT

29 views
Skip to first unread message

Wolfgang Riedmann

unread,
Mar 9, 2016, 11:58:41 AM3/9/16
to AdWords API Forum
Hi,

unfortunately I'm totally lost, and don't know where to start.

I need to authentificate with a dotnet application to the dotnet API, using the authentication as service account, and I have a json file, renamed to client_secrets.json.

I have NO value for "OAuth2JwtCertificatePath" nor "OAuth2JwtCertificatePassword", and if I understand the documentation, these data should be read from the json file. I have also looked in the C# sources of OAuth2ProviderForServiceAccounts.cs, and there is only a reference to "OAuth2JwtCertificatePath" and "OAuth2JwtCertificatePassword" values.

I need to write a Windows service that retrieves regularly some adwords data and stores it locally for automating adwords statistics - therefore I need a service account.

Is there any reference or better sample anywhere I can use? 

Thank you for any helpful response!

Wolfgang

P.S. the AdWords API seems very well documented and powerful, but unfortunately I'm crashing my head against the authentication






Wolfgang Riedmann

unread,
Mar 9, 2016, 12:49:16 PM3/9/16
to AdWords API Forum
Hi,

it seems that the .NET library does not supports the recommended json format for authentication, but only the .p12 format.

Wolfgang

Yin Niu

unread,
Mar 9, 2016, 1:58:20 PM3/9/16
to AdWords API Forum
Hi Wolfgang,

Please see OAuth Service Accounts guide for how to use service account to access AdWords API. 

Thanks,
Yin, AdWords API Team. 

Wolfgang Riedmann

unread,
Mar 9, 2016, 3:41:41 PM3/9/16
to AdWords API Forum
Hi Yin,

thank you very much!

It looks like I have to discard the authentication as service account.

Wolfgang
Reply all
Reply to author
Forward
0 new messages