Hardcoding service account secrets for adwords credentials in .NET

25 views
Skip to first unread message

pe...@svensktkosttillskott.se

unread,
Jun 13, 2017, 3:55:55 AM6/13/17
to AdWords API Forum

Hi

Is it possible to provide service account secrets as a hardcoded variable instead of providing a file path as in this vb.NET example?

        Private ReadOnly _SERVICE_ACOCUNTS_ADWORDSAPP_CONFIG As AdWordsAppConfig = New AdWordsAppConfig() With {
                .UserAgent = MY_APP_NAME,
                .OAuth2Scope = "https://www.googleapis.com/auth/adwords",
                .OAuth2Mode = OAuth2Flow.SERVICE_ACCOUNT,
                .OAuth2PrnEmail = MY_GSUITE_ADMIN_EMAIL_ADDRESS,
                .OAuth2SecretsJsonPath = (MY_LOCAL_JSON_FILE_PATH),
                .EnableSoapExtension = True,
                .EnableGzipCompression = True,
                .IncludeUtilitiesInUserAgent = True
            }


Reply all
Reply to author
Forward
0 new messages