.NET API: AdwordsAppConfig.EnableSoapExtension not more available in API 201708

70 views
Skip to first unread message

Wolfgang Riedmann

unread,
Aug 23, 2017, 2:40:34 AM8/23/17
to AdWords API Forum
Hello,

I have put all my Adwords functionality in one single DLL, and several applications are using the relative functionality.

Therefore I cannot use the configuration in the app.config, and found a possibility to define the relative parameters directly in my code (reading from a ini file).

To make it work I had set the AdwordsAppConfig.EnableSoapExtension property to true.

In the API 201708 this property seems to not exist anymore, and the following code fails:

SoapExtensions.RegisterSoapExtension( "Google.Api.Ads.Common.Lib.SoapListenerExtension, Google.Ads.Common", 1, priorityGroup.Low )

What I do need to change?

Thank you very much!

Wolfgang

P.S. I'm not using C#, but X#, a Xbase language

Anash P. Oommen (AdWords API Team)

unread,
Aug 23, 2017, 3:25:54 AM8/23/17
to AdWords API Forum
Hi Wolfgang,

As of v201708, the .NET library's logging doesn't depend on Soap Extension, so you can remove to call to EnableSoapExtension AND SoapExtensions.RegisterSoapExtension calls. If you need to capture SOAP logs, then you'd have to create a TraceSource, and attach a listener to it. This MSDN article has some details on how to do that programmatically.

You can see the TraceSources that the library uses here: https://github.com/googleads/googleads-dotnet-lib/blob/master/src/AdWords/App.config#L144. E.g. The summary logs are written to a TraceSource named AdsClientLibs.SummaryRequestLogs, and the default listener is a that writes to "C:\Logs\AdWords\summary_logs.log". 

Hope this helps. Let me know if you have more questions.

Cheers
Anash P. Oommen,
AdWords API Advisor.

Wolfgang Riedmann

unread,
Aug 23, 2017, 3:31:39 AM8/23/17
to AdWords API Forum
Hi Anash,

thank you very much for your fast answer!

I have removed the call and my applications now work also with the new API version.

Wolfgang

P.S. your team gives a very good and fast support
Reply all
Reply to author
Forward
0 new messages