In my project, we are not using app.config, instead we are initializing the config properties while declaring the AdWords User like this.
_config = new AdWordsAppConfig();
_config.UserAgent = configData[Constants.Westpac.Social.GOOGLE_USER_AGENT].ToString();
_config.ClientCustomerId = configData[Constants.Westpac.Social.GOOGLE_CLIENT_CUSTOMER_ID].ToString();
_config.DeveloperToken = configData[Constants.Westpac.Social.GOOGLE_DEVELOPER_TOKEN].ToString();
_config.OAuth2ClientId = configData[Constants.Westpac.Social.GOOGLE_OAUTH2_CLIENT_ID].ToString();
_config.OAuth2ClientSecret = configData[Constants.Westpac.Social.GOOGLE_OAUTH2_CLIENT_SECRET].ToString();
_config.OAuth2RefreshToken = configData[Constants.Westpac.Social.GOOGLE_OAUTH2_REFRESH_TOKEN].ToString();
_config.OAuth2Mode = OAuth2Flow.APPLICATION;
//Initialize the AdWordsUserListService
_adWordUser = new AdWordsUser(_config);
_adWordUserListService = (AdwordsUserListService)_adWordUser.GetService(AdWordsService.v201605.AdwordsUserListService);
Now i want to log the SOAP Request and Reponse of AdWords API. I know, that we can log by adding few keys and listeners to App.config. But we do not want to use app.config. Is there any possibility to log them using code. Also, i want to log to database. Any examples would be helpful.